codinghatso

Git_CLI command language 명령어 모음 본문

Git/Git_CLI

Git_CLI command language 명령어 모음

hatso 2021. 8. 7. 18:04

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