2016-03-18 41 views
0
[email protected]:~/Projects/skyrocket$ git status 
On branch dev/SMMWEB-36 
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: config/puppet/modules/apt (new commits) 
    modified: config/puppet/modules/augeas (new commits) 
    modified: config/puppet/modules/concat (new commits) 
    modified: config/puppet/modules/elasticsearch (new commits) 
    modified: config/puppet/modules/file_concat (new commits) 
    modified: config/puppet/modules/git (new commits) 
    modified: config/puppet/modules/php (new commits) 
    modified: config/puppet/modules/postgresql (new commits) 
    modified: config/puppet/modules/redis (new commits) 
    modified: config/puppet/modules/stdlib (new commits) 
    modified: config/puppet/modules/vcsrepo (new commits) 

Untracked files: 
    (use "git add <file>..." to include in what will be committed) 

    .idea/copyright/ 
    config/puppet/modules/blackfire/ 
    config/puppet/modules/inifile/ 
    dump.rdb 
    keys.dev.pub 
    keys.tags.pub 

no changes added to commit (use "git add" and/or "git commit -a") 

我不知道什麼(新提交)的意思是? 我不想提交這些文件。 我試圖做Git:如何取消文件更改(新提交)

$ git checkout -- . 

什麼,如果我把配置/傀儡/ *到gitignore文件thne更新緩存如下

$ git rm --cached -r . 

從回購將在刪除這些文件。推後或與其他分支合併?

回答

1

使用git reset來暫停文件!

0

隨着「混帳復位」你可以撤消所有增加 或用git重置FILE_NAME可以撤消拿起添加

0

git reset是命令從混帳unstage文件。

將文件取消後,可以通過git status命令進行確認。