mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Compare commits
No commits in common. "9331a7426643cce6d45a16c171645fffc557eb50" and "509551f71708b90ed5d3006af841b4f1a2df486b" have entirely different histories.
9331a74266
...
509551f717
4
aliases
4
aliases
@ -139,8 +139,8 @@ alias grbc="grb --continue"
|
|||||||
alias grbsk="grb --skip"
|
alias grbsk="grb --skip"
|
||||||
alias grbsh="grb --show-current"
|
alias grbsh="grb --show-current"
|
||||||
alias grbom="git rebase \"origin/\$(git defbranch)\""
|
alias grbom="git rebase \"origin/\$(git defbranch)\""
|
||||||
gfrb() { remote="${1%%/*}"; git fetch "$remote" && git rebase "$@"; }
|
gfrb() { remote="${1%/*}"; git fetch "$remote" && git rebase "$@"; }
|
||||||
gfrbi() { remote="${1%%/*}"; git fetch "$remote" && git rebase -i "$@"; }
|
gfrbi() { remote="${1%/*}"; git fetch "$remote" && git rebase -i "$@"; }
|
||||||
|
|
||||||
alias gam="git am"
|
alias gam="git am"
|
||||||
alias gama="git am --abort"
|
alias gama="git am --abort"
|
||||||
|
19
git/config
19
git/config
@ -37,23 +37,8 @@
|
|||||||
count = !echo $(pwd) && git rev-list HEAD --count
|
count = !echo $(pwd) && git rev-list HEAD --count
|
||||||
unpushed = !git log --oneline @{u}..HEAD
|
unpushed = !git log --oneline @{u}..HEAD
|
||||||
leaders = !git shortlog -s -n --all --no-merges
|
leaders = !git shortlog -s -n --all --no-merges
|
||||||
defbranch = "!defbranch() { \
|
defbranch = !git symbolic-ref refs/remotes/origin/HEAD | sed \"s@^refs/remotes/origin/@@\"
|
||||||
r=\"${1:-origin}\"; \
|
cleanmerged = !git branch --merged \"origin/$(git defbranch)\" | grep -ve \"^\\\\*\" -e \"^. $(git defbranch)$\" | xargs -r git branch -d
|
||||||
{ \
|
|
||||||
git symbolic-ref \"refs/remotes/$r/HEAD\" || { \
|
|
||||||
git remote set-head \"$r\" -a >&2 && \
|
|
||||||
git symbolic-ref \"refs/remotes/$r/HEAD\"; \
|
|
||||||
}; \
|
|
||||||
} 2>/dev/null \
|
|
||||||
| sed \"s@^refs/remotes/$r/@@\"; \
|
|
||||||
}; defbranch"
|
|
||||||
cleanmerged = "!cleanmerged() { \
|
|
||||||
r=\"${1:-origin}\"; \
|
|
||||||
b=\"${2:-$(git defbranch \"$r\")}\"; \
|
|
||||||
git branch --merged \"$r/$b\" | \
|
|
||||||
grep -ve \"^\\\\*\" -e \"^. $b$\" | \
|
|
||||||
xargs -r git branch -d; \
|
|
||||||
}; cleanmerged"
|
|
||||||
[advice]
|
[advice]
|
||||||
statusHints = false
|
statusHints = false
|
||||||
pushUpdateRejected = false
|
pushUpdateRejected = false
|
||||||
|
Loading…
Reference in New Issue
Block a user