Skip to content

vaibhav-305/First-Repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Basics of Github

Steps to push your projects on Github:

  1. Go to the that specific project folder-->Right click mouse-->"select GIT Bash Here".
  2. Create a new Repository and get is https link = (github repo link)
  3. typefollowing commands.
    touch .gitignore
    add names of files/folders in that filw who u wish not to be uploaded
    git init
    git remote add origin "github repo link without quotes"
    git remote -v
    git add .
    git commit -m "First Commit"
    git push origin master

Steps to clone a repo in local machine:

  1. First fork the repo (if are cloning other's repo)
  2. Then click on Code and copy the https address
  3. Open gitbash where u want to store the repo locally in your computer
  4. Type git clone, and then paste the URL you copied earlier and press enter.
    git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
    Reference link: https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository

About

Basic git/github commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published