2011-05-07 112 views
1

通常情况下,我的工作流程办理入住手续代码github上是:GIT如何处理未跟踪文件的消息?

git add . 
git commit -a -m "description" 
git push 

这一直工作。但现在当我犯我得到这个错误:

$ git commit -a -m "x" 
# On branch master 
# Untracked files: 
# (use "git add <file>..." to include in what will be committed) 
# 
# ../db/migrate/20110506232317_add_xxxxxxxx.rb 
# ../lib/xxxxxxxx_job.rb 
nothing added to commit but untracked files present (use "git add" to track) 

并重新与git添加。没有效果。任何想法发生了什么?谢谢

回答

6

尝试先返回一个目录。您似乎在一个子目录中。