git/码云上关于项目的一些操作:初始化、克隆、上传修改等
生活随笔
收集整理的這篇文章主要介紹了
git/码云上关于项目的一些操作:初始化、克隆、上传修改等
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.本地初始化一個項目
git config --global user.name "your_name" git config --global user.email "your_email" git init git remote add origin https://gitee.com/xxxxx/xxx.git (項目的地址) git pull origin master git add . git commit -m "第一次提交" git push origin master2.克隆一個項目
git clone https://gitee.com/xxxxx/xxx.git3.上傳修改
git add . git commit -m "Try Test" git push4.更新本地項目
git remote add origin https://github.com/xxxxx/xxx.git $git fetch origin //獲取遠程更新 $git merge origin/master //把更新的內容合并到本地分支git pull:來下載自上次部署以來的新提交總結
以上是生活随笔為你收集整理的git/码云上关于项目的一些操作:初始化、克隆、上传修改等的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 上传到GitHub或者码云中README
- 下一篇: Git/码云上多人协作,创建分支,上传修