Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Git alias solutions!
SUBMITTED BY:
Guest
DATE:
March 8, 2013, 1:08 p.m.
FORMAT:
Bash
SIZE:
708 Bytes
Raw
Download
Tweet
HITS:
1417
Go to comments
Report
# Broken version is at http://www.bitbin.it/q9p6o8bv
-->
cat
~/.gitconfig
<snip>
# From https://git.wiki.kernel.org/index.php/Aliases#alias
[
alias
]
alias
=
"!sh -c '[
$#
= 2 ] && git config --global alias.\"
$1
\" \"
$2
\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -"
amend
=
commit
--amend
-C
HEAD
`
-->
git
config
alias.alias
!sh
-c
'[ $# = 2 ] && git config --global alias."$1" "$2" && exit 0 || echo "usage: git alias <new alias> <original command>" >&2 && exit 1'
-
`
-->
git
alias
amend
"commit --amend -C HEAD"
`
-->
git
config
alias.amend
commit
--amend
-C
HEAD
# Success!
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus