Last active
November 12, 2024 19:27
-
-
Save major0/7766a3fbe4c93ec94a5a5ce292959fb8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[color] | |
ui = auto | |
[branch] | |
autoSetupMerge = true | |
autoSetupRebase = always | |
[push] | |
default = current | |
[pull] | |
rebase = true | |
[merge] | |
tool = vimdiff | |
ff = only | |
[alias] | |
as = assembler | |
l = log --compact-summary --abbrev-commit | |
co = checkout | |
ci = commit | |
st = status | |
br = branch -vv | |
sum = log --pretty=\"format:%h %G? %aN %s\" | |
hist = log --pretty=\"format:%h %ad | %s%d [%an]\" --graph --date=short | |
type = cat-file -t | |
dump = cat-file -p | |
last = for-each-ref --sort=committerdate refs/remotes --format='%(committerdate:short) %(refname:short)' | |
update = "! u() { \ | |
set -e; \ | |
current=\"$(command git symbolic-ref --short -q HEAD)\"; \ | |
for branch in $(command git for-each-ref --format='%(refname)' 'refs/heads/'); do \ | |
branch=\"${branch#refs/heads/}\"; \ | |
printf \"Updating %s ... \" \"${branch}\"; \ | |
git checkout -q \"${branch}\"; \ | |
git pull -q; \ | |
printf 'done\n'; \ | |
done; \ | |
test -z \"${current}\" || git checkout -q \"${current}\"; \ | |
}; u" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment