Git Alias Problems


SUBMITTED BY: Guest

DATE: March 8, 2013, 12:45 p.m.

FORMAT: Bash

SIZE: 512 Bytes

HITS: 1300

  1. `--> cat ~/.gitconfig
  2. <snipped>
  3. # From https://git.wiki.kernel.org/index.php/Aliases#alias
  4. [alias]
  5. alias = !sh -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -
  6. `--> git alias
  7. sh -c '[ $: -c: line 0: unexpected EOF while looking for matching `''
  8. sh -c '[ $: -c: line 1: syntax error: unexpected end of file
  9. `--> git config alias.alias
  10. !sh -c '[ $

comments powered by Disqus