git checkout // 깃 브랜치 리스트 확인
git branch // 깃 브랜치 리스트 확인
git checkout 브랜치이동 // 깃 브랜치 이동
git log // 깃 커밋 히스토리 확인
git remote add upstream 어드민 레포지토리 주소
// 어드민 레포지토리 주소로 연결된 upstream가 이름인 저장소 만들기
// git pull 할 때 origin 대신 이 브랜치를 적어야 한다.
git remote -v
// 저장소 리스트 확인
// remote add 를 했으면 해당 저장소이름이 보여져야한다.
// ex)
// origin <https://github.com/SongNoin/test.git> (fetch)
// origin <https://github.com/SongNoin/test.git> (push)
// upstream <https://github.com/testNoin/test.git> (fetch)
// upstream <https://github.com/testNoin/test.git> (push)
git pull upstream 브랜치이름
// upstream 저장소에서 브랜치이름에 해당하는 git pull
git commit -am "*commit message*"
// = git commit -m "*commit message*" + git commit -a "*commit message*"
// git commit -a "*commit message*": 별도의 add . 명령어를 사용하지 않고 수정된 파일에 대해
// add, commit을 한번에 수행함 (단, 한번도 add되지 않은 파일은 add를 따로 작업 해줘야함.)
// 수정된 파일에 add와 commit 동시에 하기