我试图遵循Git 的指示:“目前不在任何分支上。” 有没有一种简单的方法可以返回分支,同时保留更改?但git checkout
似乎坏了:
$ git checkout origin/web-zach
HEAD is now at 1366cb1... Changed so css files not ignored
$ git status
# Not currently on any branch.
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .cordova/config.xml
# www/languages/pt/sounds/
nothing added to commit but untracked files present (use "git add" to track)
更具体地说,我担心“目前不在任何分支上”的消息。git checkout
这里似乎没有做任何事情......该命令的全部目的不就是把我放在树枝上吗?我怎样才能回到分支并再次提交/推送?