git 上傳本地代碼到gitee的指令操作

git status
git add .
git remote add origin https://gitee.com/chz367/point_h5.git
git config --global user.name "chz367"
git config --global user.email"[email protected]"
git init
git remote add origin https://gitee.com/chz367/point_h5.git
git pull https://gitee.com/chz367/point_h5.git master
git status
git add .
git commit -am"h5原始代碼"
git push -u origin master -f
git status

針對本地工程代碼上傳到gitee倉庫中。

其中:user.name之後跟的你的gitee賬號,user.email是你的gitee郵箱賬號。

在添加的過程中注意要設置本地代碼到遠端:git remote add origin https://gitee.com/chz367/point_h5.git

注意在推送過程中,使用git push -u origin master -f ,尤其注意-f的使用。

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