git命令 怎麼上傳一個網頁

下載 git clone git@IP:/XX/XX/XX.git
拉取最新文件 git pull origin master
列出分支 git branch
創建分支 git branch new_master
切換分支 git checkout new_master
添加 git add .
提交 git commit -m 'info'
提交遠程分支 git push origin new_master
查看未提交的修改文件 git status
查看提交了的修改文件 git show --stat
查看提交文件修改內容 git diff head -- filepathname

https://www.cnblogs.com/lijiayi/p/githubpages.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章