오뚝이개발자

Git 기본 명령어(CLI) 본문

Git

Git 기본 명령어(CLI)

땅어 2020. 5. 15. 19:18
728x90
300x250

git init -> git저장소 시작


git status -> 파일들의 상태 확인


git add filename -> file을 git 저장소에 추가


git add * -> 변경사항 전부 추가


git commit -m "commit message" -> commit(확정)


git log -> 커밋 로그 확인


git checkout branch name -> 해당 브랜치로 이동


git branch -> 존재하는 branch 확인 및 현재 있는 branch 확인(*가 붙어있음)


git branch test -> test라는 브랜치 생성


git merge branch name -> 해당 브랜치를 마스터에 병합시킴


git branch -d branch name -> 해당 브랜치 제거(-d 옵션으로 인해)


git push


git pull

728x90
300x250
Comments