Skip to content

Instantly share code, notes, and snippets.

Created March 23, 2021 02:17
What would you like to do?
My Git Config
name = Mukesh Solanki
email =
co = checkout
cob = checkout -b
st = status
cm = commit -m
amend = commit --amend -m
pu = !git push origin `git branch --show-current`
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment