home | about | archive | rss
My Git Cheat Sheet

I’ve been using and learning git a bunch lady, so I started jotting down some of the basics I found myself using often and wanting to make sure I remembered and left a note in the plainest language possible about what it does. Figured it’d be worth putting out there. I’ll probably add a few more as I find myself in recurring situations.

git remote update

git add .;git commit -m ‘message header’ -m ‘message body’;git push

git commit -am ‘message text’;git push

git clean -dfx

git checkout -b branchName

git branch -d branchName

git stash apply stash@{#}

git log --oneline --decorate --graph --all

git config --global --edit