我有以下配置:
git version 1.8.5.6
GNU bash, version 4.2.25(1)-release (x86_64-pc-linux-gnu)
我调用了zgit_info_update
,并尝试进行提交。但是当我在Travis的Bash中运行git diff --name-only dev
时,仍然遇到问题(Git diff命令返回错误#6069)。
我该如何解决这个问题?
以下是输出内容:
git version 1.8.5.6
GNU bash, version 4.2.25(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
* (detached from FETCH_HEAD)
master
remotes/origin/HEAD -> origin/master
remotes/origin/master
[detached HEAD 72afa70] Add package.json
1 file changed, 37 insertions(+)
create mode 100644 package.json
fatal: ambiguous argument 'dev': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git pull
操作? - набиячлэвэли