向Github提交更改的代碼

更改了本地的某一文件的代碼,那麼如何覆蓋Github上的同一文件代碼呢?請看如下步驟:html

 

一、先用 git status 看你更改了哪些文件;git

二、而後 git add 你想要提交的更改的文件 或者 git add . 全部的文件;htm

三、再git commit -m ‘提交信息’;blog

四、最後 git push origin master/你的分支 。get

 

注意:若是遠程有別人已經提交了,你在push以前 先pull下來!解決衝突!再add commit push 就好了!it

 

可能要用到的參考io

相關文章
相關標籤/搜索