如何使用自定义消息执行git stash --include-untracked
?
我尝试过:
git stash --include-untracked --message "Foo"
和
git stash --include-untracked "Foo"
但在Git 2.17.1中,这两个命令都会打印出用法警告。
如何使用自定义消息执行git stash --include-untracked
?
我尝试过:
git stash --include-untracked --message "Foo"
和
git stash --include-untracked "Foo"
但在Git 2.17.1中,这两个命令都会打印出用法警告。
git stash push
;在此情况下,您需要使用子命令。因此,您将编写git stash push --include-untracked --message "Foo"
。在旧版本的git(< 2.13)中,您需要使用save
子命令:
git stash save --include-untracked "Foo"
在较新版本中,建议使用push
子命令:
git stash push --include-untracked --message "Foo"
2.16.0
起,stash save
已被弃用,建议使用stash push
。Git 2.7.4
git stash save -u your message here
git stash push -u -m '在此添加您的消息。'
。-u
表示包括未跟踪的文件,-m
表示消息。 - Blues Clues