by softwaredoug · 5y ago · 0 comments
synced = pull origin master --rebase. # Update myself with master
squash = rebase -i origin/master # Let me optionally squash whatever has happened since master
publish = push origin HEAD --force-with-lease # Save to orig in (github)
pub = push origin HEAD --force-with-lease # Save to origin (github)
ammend = commit --amend # I cannot spell this word for the life of me
amend = commit --amendA must read for every cli git user.
This reminds me of one of my favorite silly aliases, which requires declarations in both my shell profile and my .gitconfig:
In .bashrc : `alias gits=git`
In .gitconfig : `[alias]` `tatus = status`
This allows me to mistype `git status` as `gits tatus` and brings me a small amount of joy.
gcmsg "git commit -m" - Git commit message
gco "git checkout" - Change branch
gd "git diff" - Files differences in staging
gl "git pull" - Pull from remote
gp "git push" - Push to remote
--- Tool looks interesting!
[0] https://github.com/epage/git-stack/blob/main/docs/reference....
[pull] rebase = true # if you're going to do it anyway might as well make it the default
[rebase] autoSquash = true # if you use --fixup commits autoStash = true # save yourself the roundtrip