CM(ConfigurationManagement)/git
[git] 4. Remote config
리딩리드
2016. 5. 12. 22:30
Remote config
1. git remote add
- git remote identifier is origin
2. git push
2_1. transmission from master
-u
local branch's upstream will be set up as a origin(remote)'s master branch
so when you execute a pull command, you can get a master branch on the remote repository
2_2. transmission from others
3. git clone
3_1. To get a remote repository
3_2. remote's branch feature-D How to checkout
- git checkout -b feature-D
(Create a branch's feature-D)
- origin/feature-D
(reference to remote branch's feature-D)
3_3 Commit as a feature_D
3_4 To push to feature-D
3_5. git pull