Git global setup
git config --global user.name "陳俊"
git config --global user.email "271200229@qq.com"
Create a new repository
git clone https://gitlab.com/JceJun/Demo.git
cd Demo
touch README.md
git add README.md </pre>
git commit -m "add README"
git push -u origin master
Existing folder
cd existing_folder
git init
git remote add origin https://gitlab.com/JceJun/Demo.git
git add .
git commit -m "Initial commit"
git push -u origin master
Existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitlab.com/JceJun/Demo.git
git push -u origin --all
git push -u origin --tags
本地創(chuàng)建Demo
cd 文件夾
git init
git add .
git commit -am '123' gitLab創(chuàng)建Demo
git remote add
git push
git push --set-upstream Demo master
拉取
git pull Demo master git pull origin master 是url的別名
是分?支
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。