Command line instructions
Git global setup
git config --global user.name "renjingkai"
git config --global user.email "renjingkai@cloudhearing.cn"
Create a new repository
git clone http://192.168.0.20/gitlab/cloudhearing/ios-bluetooth-aromatherapy-VortEssenceSmart.git
cd ios-bluetooth-aromatherapy-VortEssenceSmart
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder or Git repository
cd existing_folder
git init
git remote add origin http://192.168.0.20/gitlab/cloudhearing/ios-bluetooth-aromatherapy-VortEssenceSmart.git
git add .
git commit
git push -u origin master
删除远程仓库
git remote rm origin
查看远程仓库
git remote -v
清除并且充值git
rm -rf .git
网友评论