https://git-scm.com/download/win → 여기에서 설치한다.
// commit할 때 쓰일 유저이름
git config --global user.name jypjun12
// commit할 때 쓰일 유저이메일
git config --global user.email jypjun12@gmail.com
git config --list
// 작업공간을 c드라이브의 gitWS로 지정해주었다.
WScd c:/git/gitWS
// 현재 디렉토리를 로컬 저장소로 설정한다.
// 로컬저장소로 설정
git init
// 로컬저장소 설정을 취소하려면
rm -r .git
// 로컬 저장소의 현재 상태를 확인해보자.
git status
https://gbsb.tistory.com/10
https://junyoeng.tistory.com/18
cd c:/(원하는 디렉토리)
git clone (복사한 주소)
ls
git checkout -b (brach 이름)
git branch (branch 이름)
git checkout (branch 이름)
현재 자신의 파일과 연결된 branch 목록
$ git branch
branch 삭제
$ git branch -d {branch 이름}
branch 강제 삭제 : 위의 방법으로 삭제가 안될 때 사용
$ git branch -D {branch 이름}
branch에 코드push
$ git push origin {branch 이름}
A 브랜치에 B브랜치 merge하기
$ git checkout {A branch}
$ git merge {B branch}
branch 끼리 비교
$ git diff {branch 이름} {branch 이름}
git init
git remote add origin https://github.com/~.git
git pull origin 브런치이름
git checkout -b 브런치이름
git add .
git commit -m "어쩌구"
git push origin 브런치이름