Gitlab上传代码
生活随笔
收集整理的這篇文章主要介紹了
Gitlab上传代码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
git config --global user.name "ymm"
git config --global user.email "1111111@wh.com.cn"
創建一個新倉庫
git clone http://xxxxxxxx/code.git
cd code
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
推送現有文件夾
cd existing_folder
git init
git remote add origin http://xxxxxxxxxx/code.git
git add .
git commit -m "Initial commit"
git push -u origin master
推送現有的 Git 倉庫
cd existing_repo
git remote rename origin old-origin
git remote add origin http://xxxxxxxxxxxxxx/code.git
git push -u origin --all
git push -u origin --tags
總結
以上是生活随笔為你收集整理的Gitlab上传代码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 活体检测方法概述与总结
- 下一篇: 本机电脑与 Android 设备如何进行