Github Basic Commands, Setup a New Repository


Clone a GitHub project onto my local drive:

git clone

Show the status of Git project and what files are not synced
git status

Add a file to the project
git add first.html

Commit the file to the repository on GitHub
git commit -m "This is my first file"

Push from local to Github
git push origin master

Pull from Github to local
git pull master origin

Posted In CategoriesSSH| Tagged Tags