본문 바로가기

git

git 용어 정리

add-commit-push 순서로 깃허브에 저장 

git status: 현재 상황

git checkout: 직전 버전으로 롤백

git checkout brunch이름: 해당 brunch로 이동

git log: 기록확인

git remote add origin "깃헙레포지토리 url" : 원격저장소 연결

git push -u origin main: 원격저장소에 저장

git rm --cached -r.  add된 파일 전부취소 

git reset 파일명 : 특정 파일 add취소 

gitignore : 안에 적힌 파일들은 add안됨 

git clone "url": 깃에 있는 코드 복사 

git merge "brunch 이름": main으로 병합

 

forking : 레포지토리에 있는 코드를 내 레포지토리로 가져온다

pull request: 내가 수정한 버전을 적용해 달라고 요청한다.