]> code.delx.au - dotfiles/commitdiff
git: pushd and pushn
authorJames Bunton <jamesbunton@delx.net.au>
Wed, 26 Feb 2014 23:27:02 +0000 (10:27 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 27 Feb 2014 07:24:46 +0000 (18:24 +1100)
.gitconfig

index de51fe7c9db59a599b49ac0c7b199a730eafcd0b..ff72ddc047ec3897a40b3c0639cc4ca1a2c45724 100644 (file)
@@ -25,4 +25,5 @@
        ff = merge --ff-only
        ffpull = pull --ff-only
        lso = ls-files -X .gitignore -o
-       newpush = !git push -u origin "$(git rev-parse --abbrev-ref HEAD)"
+       pushn = !git push origin -u --set-upstream "$(git rev-parse --abbrev-ref HEAD)"
+       pushd = !git push origin --delete "$(git rev-parse --abbrev-ref HEAD)"