Skip to content

Instantly share code, notes, and snippets.

@rafa-thayto
Last active February 24, 2022 01:03
Show Gist options
  • Select an option

  • Save rafa-thayto/c62cf6b94311a040d4499ae3ca0be395 to your computer and use it in GitHub Desktop.

Select an option

Save rafa-thayto/c62cf6b94311a040d4499ae3ca0be395 to your computer and use it in GitHub Desktop.
.gitconfig alias
[alias]
a = add
co = checkout
sw = switch
ci = commit
st = status
br = branch
ps = push
ac = "!git add . && git commit -m"
fp = "!git fetch && git pull && git push"
fpp = "!git fetch && git pull && git push"
hist = "log --pretty=format:\'%h %ad | %s%d [%an]\' --graph --date=short"
// global configs alias
git config --global alias.a add
git config --global alias.co checkout
git config --global alias.sw switch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.ps push
git config --global alias.ac "!git add . && git commit -m"
git config --global alias.fp "!git fetch && git pull"
git config --global alias.fpp "!git fetch && git pull && git push"
git config --global alias.hist "log --pretty=format:\'%h %ad | %s%d [%an]\' --graph --date=short"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment