Skip to content

Commit

Permalink
git: Add a couple aliases
Browse files Browse the repository at this point in the history
* git prp - pull rebase purge old remote branches locally
* git sweep - remove local branches that have been merged
  • Loading branch information
vrillusions committed Mar 27, 2015
1 parent c012323 commit 3b53f00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitconfig.versioned
Expand Up @@ -29,6 +29,7 @@
pa = "!f(){ git pull --ff-only \"$@\" && git submodule update --init --recursive; }; f"
permission-reset = "!git diff -p -R | grep -E \"^(diff|(old|new) mode)\" | git apply"
pr = pull --rebase
prp = pull --rebase --prune
ps = push --recurse-submodules=check
restore = checkout --
sd = "!f(){ date=$(date \"+%Y-%m-%dT%H:%M:%S%z\") && git stash save \"$date $@\"; }; f"
Expand All @@ -40,6 +41,7 @@
sti = status --ignored
sts = status --short --branch
su = submodule update
sweep = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
ta = tag -a
ts = tag -s
unstage = reset HEAD --
Expand Down

0 comments on commit 3b53f00

Please sign in to comment.