-1
git status
給出:有沒有辦法讓git將第二個文件從非暫存文件添加到暫存區域?
On branch sid-x
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: longpath/x.java
modified: longpath/x.html
modified: longpath/x.py
我想x.html添加到我的臨時區域。除了寫出git add longpath/x.py
之外,有沒有一個標誌或方法可以做到這一點?
避免'git add'的原因是什麼? – zerkms
你試圖避免'git add'或'longpath'? – nullpointer
如果你想添加'x.html'到臨時區域;你的意思是你不想寫'git add longpath/x.html'? –