The top Git commands


 

1200px-Git-logo.svg

 

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Here are the top Git commands:

  • git checkout X
  • git checkout -b new-branch
  • git commit * git add .
  • git add <specific filename>
  • git status
  • git pull = git fetch + git merge against tracking upstream branch
  • git pull — rebase = git fetch + git rebase against tracking upstream branch
  • git rebase origin/master
  • git push origin X

 

X = branch name

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.