본문 바로가기

Python_Beginer/GIT

[GIT]Replicate / Raise / Lower Remote Storage(원격 저장소 복제 / 올리기 / 내리기) - Collaboration(협업)

반응형

1. git clone [ 복제 ]

git_home [ 지역 저장소 ]

$ git clone 원격저장소주소 git_home
$ ls -la
$ cd git_home
$ git log
$ git remote -v

 

git_office [ 지역 저장소 ]

$ git clone 원격저장소주소 git_office
$ ls -la
$ cd git_home
$ git log
$ git remote -v

 

2. push [ 올리기 ]

git_home [ 지역 저장소 ]

$ vim f1.txt  
$ git commit -am "add c"
$ git push

 

3. pull [ 내리기 ] -> push [ 올리기 ]

git_office [ 지역 저장소 ]

$ git pull
$ vim f1.txt
$ git commit -am "add d"
$ git push

 

4, pull [ 내리기 ]

git_home [ 지역 저장소 ]

$ git pull
$ git log

 

 

반응형