git首次提交代碼到服務器


先配置信息

1. git config --global user.name "linlianhuao"

2. git config --global user.email "linlianhuao@qq.com"

創建倉庫並提交代碼

1. git init 

2. git remote add origin git@gitlab.***.com:linlianhuao/**.git

3. git add -A

4. git commit -m 建立項目

5. git push -u origin master

拉取遠程代碼

1. git clone git@gitlab.***.com:linlianhuao/**.git

2. cd **

3. git add -A

4. git commit -m 提交信息

5. git push -u origin master
---------------------
作者:指尖之間
來源:CSDN
原文:https://blog.csdn.net/ekey_code/article/details/55116376
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM