-
-
Save allbarbos/6460e9ee49cf075048e569bf9fe0fba6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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