Answer

问题及解答

[git] 更新仓库中的内容并上传

Posted by haifeng on 2019-03-08 23:39:34 last update 2019-04-07 10:35:10 | Edit | Answers (0)

haife@hp MINGW64 /d/download/github/calculator (master)                         
$ git status                                                                    
On branch master                                                                
Your branch is up to date with 'origin/master'.                                 
                                                                                
Changes not staged for commit:                                                  
  (use "git add ..." to update what will be committed)                    
  (use "git checkout -- ..." to discard changes in working directory)     
                                                                                
        modified:   .vs/calculator/v14/.suo                                     
        modified:   Release/calculator.exe                                      
        modified:   calculator/BigNumber.cpp                                    
        modified:   calculator/BigNumber.h                                      
        modified:   calculator/calculator.cpp                                   
                                                                                
no changes added to commit (use "git add" and/or "git commit -a")               
                                                                                
haife@hp MINGW64 /d/download/github/calculator (master)                         

然后执行 git add -u 或者 git add .

重新查询状态

git status

git commit (写评注)

haife@hp MINGW64 /d/download/github/calculator (master)                         
$ git commit                                                                    
[master 3487c12] 1. BigNumber.cpp 中的 ChangeInfix() 函数在debug时导致如下错误:
 String subscript out of Range 现在已经修复, 详见 ChangeInfix()的定义.          
 5 files changed, 335 insertions(+), 29 deletions(-)                            
 rewrite .vs/calculator/v14/.suo (66%)                                          
 rewrite Release/calculator.exe (82%)                                           
                                                                                
haife@hp MINGW64 /d/download/github/calculator (master)                         
$ git push origin master