Git quick reference

git clone git:…
git add path/to/new_file
git commit -a
git pull
git push

# Showing branches.
git branch -a
gitk –all

# Checking out branches.
git checkout some_branch

# Creating and pushing a new branch.
git checkout -b new_branch_name
git push -u origin new_branch_name

# Checking out an existing branch.
git checkout -b some_branch origin/some_branch

# Merging a branch into your current branch.
git pull origin some_branch

By Hitesh

Hi, I am your host, Hitesh. I am a tech enthusiast and dabble in a variety of subjects. Connect with me on Twitter or LinkedIn.