나는 Cygwin에서이 명령을 실행하기 위해 노력하고있어 : 당신이 오류에서 볼 수 있듯이, 그것은 내가 @u..HEAD
대신 @{u}..HEAD
를 전달하고있어 생각Cygwin의 Git 명령은 명령에서 중괄호를 제거합니다. 어떻게 이것을 막을 수 있습니까?
$ git log --oneline --graph --decorate --all '@{u}..HEAD'
fatal: ambiguous argument '@u..HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
. 중괄호가 제거되는 이유는 무엇이며이를 방지하려면 어떻게해야합니까?
내가 사용하고 떠들썩한 파티 :이 난 그냥 에코 사용하는 경우 때문에 자식 명령이이 일을 할 수있다 생각
$ echo $SHELL
/bin/bash
, 중괄호 체재 :
$ echo '@{u}..HEAD'
@{u}..HEAD
여기에 다른 정보가 있다고 도움을 받으실 수 있습니다 :
$ git version
git version 1.7.9
$ type -a git
git is /c/cygwin/bin/git
$ git config -l
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
svn-remote.svn.url=https://myrepo/svn/results
svn-remote.svn.fetch=trunk:refs/remotes/trunk
svn-remote.svn.branches=branches/*:refs/remotes/*
svn-remote.svn.tags=tags/*:refs/remotes/tags/*
$ git rev-parse --symbolic-full-name @{u}
fatal: ambiguous argument '@u': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
@u
또한 /c
경로를 사용하면 도움이 될 수 있습니다. mount c: /c
일 주위 : : 모자 내의 .bashrc 파일 내 편의를 위해 그것은이 라인을 가지고 내가이 명령을 사용하는 경우 대신 git log --oneline --graph --decorate -- '@{u}..HEAD'
는 불평하지 않습니다. "-"를 주목하십시오. 그러나 IRC의 모든 계정을 통해이 작업을 수행하면 안됩니다.
당신은 어떤 버전의 git를 사용하고 있습니까? –
또한 관심 있어요 :'type -a git','git config -l' –
도움을 주셔서 감사합니다. 하단 편집 내역을 참조하십시오. –