git remote hosting

1, create an alias

git remote add orgin (alias) url

2, Push Drive

git push alias master (branch)
git push alias dev

3, clone (default master branch only)

git clone url

4. Create a dev branch

git branch dev

5, the switching branch dev

git cehckout dev

6, re-creating an alias

git remote add url aliases

7, pull out the data dev

git pull orgin dev

note:

dev FETCH Orgin Git 
Git Merge / Orgin / dev Orgin Git rebase the / dev kept clean of the code 
and 
git pull orgin dev 
effect as

 

Guess you like

Origin www.cnblogs.com/wt7018/p/11564021.html