码迷,mamicode.com
首页 > 其他好文 > 详细

git 初始用法

时间:2019-08-24 10:16:52      阅读:88      评论:0      收藏:0      [点我收藏+]

标签:test   master   pre   code   tag   ted   auto   xxx   setup   

 

Git global setup
git config --global user.name "xiaoming"
git config --global user.email "xiaoming@xxx.com"


Create a new repository
git clone ssh://git@gitlab.xxx.com:8022/test/jixie-automated-testing-android.git
cd jixie-automated-testing-android
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master


Push an existing folder
cd existing_folder
git init
git remote add origin ssh://git@gitlab.xxx.com:8022/test/jixie-automated-testing-android.git
git add .
git commit -m "Initial commit"
git push -u origin master


Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin ssh://git@gitlab.xxx.com:8022/test/jixie-automated-testing-android.git
git push -u origin --all
git push -u origin --tags

 

git 初始用法

标签:test   master   pre   code   tag   ted   auto   xxx   setup   

原文地址:https://www.cnblogs.com/sea-stream/p/11403254.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!