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

Advertisements

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 )

Google+ photo

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

Twitter picture

You are commenting using your Twitter 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.