Skip to content

Instantly share code, notes, and snippets.

@allbarbos
Last active October 6, 2020 18:52
Show Gist options
  • Save allbarbos/6460e9ee49cf075048e569bf9fe0fba6 to your computer and use it in GitHub Desktop.
Save allbarbos/6460e9ee49cf075048e569bf9fe0fba6 to your computer and use it in GitHub Desktop.
# delete branch local
git branch -d the_local_branch
# delete branch remota
git push origin :the_remote_branch
git push origin --delete the_remote_branch
# atualizar referências dos branches local com remote
git fetch --prune --all
# atalhos
[user]
name = Allan Barbosa
email = allbarbos13@gmail.com
[alias]
a = !git add . && git status
c = commit
cm = commit -m
acm = !git add . && git commit -m
acmp = "!f() { git add -A && git commit -m \"$@\" && git push; }; f"
s = status
ch = checkout
ps = push
pst = !git push && git push --tags
pl = pull
plr = pull --rebase
mt = !git checkout master
dv = !git checkout develop
master = !git checkout master
develop = !git checkout develop
hist = git for-each-ref --sort=-committerdate --count=10 --format='%(refname:short)' refs/heads/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment