일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- API
- next.js
- git
- 최적화
- hatso
- array
- developerlife
- AI
- learn next.js
- ES5+
- JavaScript
- 우아한테코톡
- This
- 선택자
- hooks
- es6
- github
- CSS
- gitCLI
- dev
- JS
- DOM
- ES6+
- react
- 변수
- html5
- 함수
- object
- 햇소
- Python
Archives
- Today
- Total
codinghatso
Git_CLI command language 명령어 모음 본문

git command language를 표로 정리해 보았습니다.
공부를 하면서 새로운 명령어를 알아내면 계속 추가할 예정입니다.
우리 모두 협업 가능한 인재가 되도록 노력해 봅시다!!
Command language | explanation | 보충설명 |
git init | initialize repository | 리포지토리 초기화 |
.git | git repository | git 저장소 |
git status | working tree status | git 상태확인 |
git add | add to staging area | staging area에 추가 |
git add . | . refers to all files in the current directory | 현 directory의 모든 파일 |
git commit | create version | 버전 만들기 |
git commit -m "[version name]" | message option, to version name | commit 옵션 |
git commit -am "[version name]" | -am command is a combination of add and message | add를 추가해서 commit |
git commit -amend | rename version of last commit | commit 이름변경 |
git log | show version | 기록 보기 / 버전 확인 |
git log --stat | show detailed description | 상세 기록 확인 |
git log -p | check change points | 무엇이 변경 되었는지 확인 |
git log --all --graph --oneline | all the information is visualized in one line. | 간단한 그래프로 보기 |
git diff | show chagens | 달리진 부분 확인 |
git checkout | change version by moving HEAD to desired Branch | branch 변경 |
git checkout -b <name-of-branch> | make a branch and move for checkout | branch를 만들며 이동 |
git reset --hard [version id] | reset to corresponding version id. | 원하는 버전으로 리셋 |
git remote add origin [github URL] | connecting remotely to the github repository | github 원격 연결 |
git remote -v | show remotely connected state | remote 연결 상태 |
git push origin master | git push [remote storage] [local storage] push local to remote |
local을 remote로 push |
git pull origin master | git pull [remote storage] [local storage] pull remote to local |
remote을 local로 pull |
git branch | check the branch list | branch 목록 확인 |
git branch [branch name] | create branch | branch 생성 |
git fetch | Downloading remote branch | remote branch 다운 |
git merge | branch to be combined with the current branch | branch 병합 |
git mergetool | Editor to help merge | 병합도구 |
Made by 햇소
'Git > Git_CLI' 카테고리의 다른 글
git 에서 pull이란? (0) | 2021.08.09 |
---|
Comments