Skip to content

Instantly share code, notes, and snippets.

@JeroenVdb
Last active August 29, 2015 14:08
Show Gist options
  • Save JeroenVdb/a72790f71f0cb8426bc8 to your computer and use it in GitHub Desktop.
Save JeroenVdb/a72790f71f0cb8426bc8 to your computer and use it in GitHub Desktop.
Git Bash common commands

Branch: create new

git checkout -b featurebranch

Branch: checkout remote one

git checkout featurebranch

Branch: view all (remote and local)

git branch -a

Merge: develop in local branch

git merge develop

Merge: use my or others changes while merging

git checkout --theirs web/*
git checkout --ours web/index.html

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment