Skip to content

Commit

Permalink
git alias: add restore aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
HaleTom committed Oct 14, 2020
1 parent b288332 commit 28e81b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git/.config/git/config
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@
psuo = push --set-upstream origin
psurb = "![ $# -ne 1 ] && { echo 'Give argument: <remote-for-upstream>' >&2; exit 1; }; b=\"$(git rev-parse --abbrev-ref HEAD)\" && git push --set-upstream \"${1?}\" \"$b\" #"
psuob = "!b=\"$(git rev-parse --abbrev-ref HEAD)\" && git push --set-upstream origin \"$b\" #"
rs = restore
rsp = restore --patch
rss = restore --source
rsps = restore --patch --source

# ff-only pull into another branch (must change branches for generic merge or pull)
# https://stackoverflow.com/a/17722977/5353461
Expand Down

0 comments on commit 28e81b3

Please sign in to comment.