分支
1 | # 创建dev分支 |
Command line instructions
Git global setup1
2git config --global user.name "blacker"
git config --global user.email "blacker@aldwx.com"
Create a new repository1
2
3
4
5
6git clone git@140.143.7.175:ad_team/ad_mini_app.git
cd ad_mini_app
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder1
2
3
4
5
6cd existing_folder
git init
git remote add origin git@140.143.7.175:ad_team/ad_mini_app.git
git add .
git commit -m "Initial commit"
git push -u origin master
Existing Git repository1
2
3
4
5cd existing_repo
git remote rename origin old-origin
git remote add origin git@140.143.7.175:ad_team/ad_mini_app.git
git push -u origin --all
git push -u origin --tags