Git 사용하기
웹 개발/Study 2021. 3. 19. 18:45git remote add pair <Repo URL for pairs fork>
git remote -v
페어의 레버지토리 연결
git add<change file>
git commit -m “memo”
git push origin master ( or other branch name)
push는 자신의 레포지토리에다가 해야함
git pull pair master ( or other branch name)
pull은 항상 페어의 레포지토리에서 해야함
페어의 레포지토리에서 변경사항 가져오기
git add <change file>
git commit -m “change”
git pull pair master
git config credential.helper store
인증을 캐시에 저장하여 일정시간동안 입력하지 않는다.
git config –global credential.hgelper ‘cache –timeout 7200’
timeout뒤의 숫자는 초(second)이다. 여기서는 7200만큼(2시간)의 만료시간을 추가했다.
1day – 86400
7days – 604800
30days – 2592000
git checkout
branch 이동
git checkout -b 기능1
현재 작업공간을 베이스로 브랜치 생성
기능1 branch 생성 + 기능1 branch로 작업공간 이동
git branch
branch확인, q로 나가기
'웹 개발 > Study' 카테고리의 다른 글
객체 지향 설계의 다섯가지 원칙 (0) | 2021.03.21 |
---|---|
var let const (0) | 2021.03.21 |
Node 명령어 (0) | 2021.03.19 |
HTTP 상태 코드/ 요청 메서드 (0) | 2021.03.19 |
Promise 정리 (0) | 2021.03.19 |