Skip to content

Git Commands

Clint James edited this page Mar 15, 2017 · 3 revisions

#Git Commands

  • git clone - clones repository into a new directory in your local machine

  • git status - checks the changes you made in your local and compared it to the online repository or branch

  • git add - adds file changes to your local directory index

  • git commit - record changes to your local repository

  • git push - update remote repository based on your local repository

  • git fetch - download objects and refs from the online repository

  • git checkout branchname - switch branches or restore working tree files

  • git pull --rebase origin master - synchronizes other branches with master. reduces conflicts during merge.

Clone this wiki locally