2017-02-12 70 views
-2

我想從我的索引樹添加我的文件到Git倉庫,但他們不加入,如下Git的問題 - 不能到我的文件添加到我的倉庫

On branch master 
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) 
(commit or discard the untracked or modified content in submodules) 
modified: Roles/maven-standalone (modified content) 
no changes added to commit (use "git add" and/or "git commit -a") 

我想拋出一個錯誤一次又一次,顯示同樣的事情!

+1

你到底做了什麼? –

+0

請向我們展示您正在使用的命令。我想你想使用'git add'命令 – Flows

回答

0

您是否試過git add .命令添加文件?試試這個:

$ git status     # see you changes 
$ git add .     # add the files 
$ git commit -m 'Added'  # commit 
$ git push origin HEAD  # push to remote 
相關問題