300x250

[ 현상 ]

 

[ 원인 ]

- 명확히 모름, 구글링함


[ 해결 ]

branch 명 앞에 + 기호 붙힘

 

반응형
300x250

git remote update

 

- 원격저장소 업데이트 전, 브랜치 조회

업데이트 전, 브랜치 조회

 

- 원격저장소 업데이트 후, 브랜치 조회

업데이트 후, 브랜치 조회

 

 

 

반응형
300x250

 

( 설정 한 경우 패스 ) Acccount 설정


git config --global user.email "you@email.com"

git config --global user.name"Your Name"

 

저장소 초기화


git init

 

 

스테이징


git add.

 

커밋


git commit -m "[메시지]"

 

원격 저장소 지정


git remote add origin git@gitlab.com:eddykim/camerax.git

 

Update remote refs along with associated objects.


git push origin master 

 

 

 

init 할 때, remote branch

Create Readme.md -> Pull -> Push

반응형
300x250

bash


Desktop > 마우스 우클릭 > Git bash here

 

 

( 해당 PC에서 최초 Key 생성하는 경우 ) 계정 홈 디렉터리 이동


cd

 

 

 

 

( 생성 한 적이 있는 경우 ) key 보관 경로 이동 :


 

 cd ~/.ssh

 

키 생성


 ssh-keygen -t rsa -C "GitLab" -b 4096

 

 

반응형

+ Recent posts