/
(4)-1.Remote repository 만들기

(4)-1.Remote repository 만들기

[Git & Gerrit Home으로 돌아가기]

 

[실습을 위한 원격 Repository 생성 및 확인]

1. c:/opt/repository/test.git 만들기 -> $ c:/opt/repository/ 폴더 아래에서 “git init --bare test.git” 실행

2. Client에서 내려받기 -> 작업 폴더로 이동하여 ‘git clone file://c:/opt/repository/test.git’ 실행 -> 파일을 추가하고 커밋

3. 다시 서버로 Push -> $ git push origin master

4. 현재 생성된 모든 Branch 확인 (all)  -> $ git branch -a

※ 참고: Windows용으로 git설치 후 git bash 사용 시 MINGW로 실행이 되므로 경로는 /c/opt/~ 와 같이 표시

ex) $ git init --bare test.git Initialized empty Git repository in C:/opt/repository/test.git/

 

예제)

D:\test  git init --bare test1.git

D:\work\test1

git clone file://d:/test/test1.git

cd test

git remote -v

Related content

(4)-4.GIT - 5.+Training+Set+D
(4)-4.GIT - 5.+Training+Set+D
More like this
(4)-4.GIT - 3.+Training+Set+B
(4)-4.GIT - 3.+Training+Set+B
More like this
(4)-4.GIT - 2.+Training+Set+A
(4)-4.GIT - 2.+Training+Set+A
More like this
저장소에서 작업하기
저장소에서 작업하기
More like this
(4)-4.GIT - 4.Branch+!!!
(4)-4.GIT - 4.Branch+!!!
More like this
(4)-4.GIT - 1.+개념잡기+실습
(4)-4.GIT - 1.+개념잡기+실습
More like this