Git commands, Tips and Tricks
git log --graph --online --decorate
git config -g alias. "ex:commit -m"
git bisect start git bisect good #### git biest bad
--interactive will start merge interatively git rebase main --interactive
pick commitno
--fixup // to use single message when squashing instead of merging all messages from previous commits
--squash // use squash flag while commits
git rebase -i --autosquash
git commit --amend -m ""
git add . git commit --amend --no-edit // add files to last commit
use Husky javascript library to use git hooks.
Goto previous branch - if you had recently switched out of branch and forgot brnach name, you could tp previous branch
git checkout -