-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
21 lines (21 loc) · 1.08 KB
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
reference_branch_name=develop
alias a="git add ."
alias c="git commit -m \"\$(git branch --show-current)\""
alias ca="git commit -a -m \"\$(git branch --show-current)\""
alias cam="git commit -a --amend"
alias camne="git commit -a --amend --no-edit"
alias pf="git push --force-with-lease"
alias all="git add . && git commit --amend --no-edit && git push --force-with-lease"
alias allreview="git add . && git commit -m \"retours review\" && git push"
alias p="git push"
alias ra="git rebase --abort"
alias rc="git add . && git rebase --continue"
alias rdi="git rebase \$reference_branch_name -i"
alias rd="git rebase \$reference_branch_name"
alias ea="vim \"$AliasListPath\" && . \"$AliasListPath\""
alias f="git fetch -p -P"
alias bl="clear && git branch -l"
alias bla="clear && git branch -la"
alias ud="previous_branch_name=\$(git branch --show-current) && git checkout \$reference_branch_name && git fetch -p -P && git pull && git checkout \$previous_branch_name"
alias fa="find . -type d -name .git -exec sh -c 'cd \"\$0\" && cd .. && git fetch -p -P -t -f' {} \;"
alias stash="git stash save -u"