Add some new git convenience
This commit is contained in:
parent
7b64bbdbf5
commit
ad301d475d
2 changed files with 16 additions and 1 deletions
8
bin/max-set-upstream
Executable file
8
bin/max-set-upstream
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
function main {
|
||||||
|
local branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
|
git branch --set-upstream-to="origin/$branch" "$branch"
|
||||||
|
}
|
||||||
|
|
||||||
|
main $1
|
|
@ -9,7 +9,7 @@
|
||||||
email = me@maxbucknell.com
|
email = me@maxbucknell.com
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
dc = diff --cached
|
dc = diff --staged
|
||||||
di = diff
|
di = diff
|
||||||
amend = commit --amend
|
amend = commit --amend
|
||||||
aa = add --all
|
aa = add --all
|
||||||
|
@ -23,7 +23,9 @@
|
||||||
current-branch = rev-parse --abbrev-ref HEAD
|
current-branch = rev-parse --abbrev-ref HEAD
|
||||||
cl = clone
|
cl = clone
|
||||||
ll = !max-git-log
|
ll = !max-git-log
|
||||||
|
uu = !max-set-upstream
|
||||||
whodunnit = blame
|
whodunnit = blame
|
||||||
|
peek = log -1
|
||||||
|
|
||||||
[color]
|
[color]
|
||||||
ui = auto
|
ui = auto
|
||||||
|
@ -38,3 +40,8 @@
|
||||||
user = maxbucknell
|
user = maxbucknell
|
||||||
[credential]
|
[credential]
|
||||||
helper = osxkeychain
|
helper = osxkeychain
|
||||||
|
[filter "lfs"]
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue