This cheat sheet is intended for an "advanced" usage of git. If you don't know what to put in your commit messages, I wrote a post about conventional commits. You can use rebase --exec --exec to execute a command on each commit of --graph' alias gst = 'git status'

3m read timeFrom dev.to
Post cover image
Table of contents
🧭 Navigation - Go to the previous branch🔍 Get the history🙈Ooops #1: I reseted an unwanted commit. How to rollback?What's happens when you `git commit`🤦‍♀️Ooops #2: I mixed-up with my local repo. How to clean it?🕵🏻‍♂️Difference between my branch and master✔ Custom commits♻️ Squash commits🎯Fixup🕹Execute command on each commit when rebasing🦋Stash🗑 Clean🐙 GitHub = Git + Hub🦄 Bonus: my favourite git aliases
3 Comments

Sort: