My Most Used Git Bash Commands

git status git add . git commit -m “comment” git pull git push 
git checkout . 
git reset <filepath>
git reflog
git reset --hard [commit I want to rest to] 
git clean -n git clean -f
git pull -X theirs/ours
git checkout --theirs path/to/file
git checkout -b dev
git push origin dev
git checkout master
git merge dev
git branch -d dev
git branch -d -r origin/dev

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store