Git

git 계정 분리

less than 1 minute read

git config 설정 이 포스팅에서는 디렉토리별로 git 계정을 분리하는 방법을 정리한다. 1 .gitconfig 전역 설정 파일 수정 ~/.gitconfig [user] name = zave7 email = zave...

git submodule

less than 1 minute read

$ git submodule - Initialize, update or inspect submodules git submodule 하위 모듈을 상위 모듈과 함께 버전관리를 할 수 있도록 하는 명령이다. 기본적으로 최상위 디렉토리 하위에 서브모듈의...

git pull

less than 1 minute read

$ git pull - Fetch from and integrate with another repository or a local branch git pull 다른 리포지토리 또는 로컬 분기에서 가져와 통합한다. fetch + merge 이다. ...

git clean

less than 1 minute read

$ git clean - Remove untracked files from the working tree git clean git에 의해 추적되지 않는 working directory의 파일들을 제거한다. interactive 모드 및 파일명 패...

git remote

less than 1 minute read

$ git remote - Manage set of tracked repositories git remote 원격 저장소를 지정하거나 조회할때 사용하는 명령이다. 여러 저장소를 지정할 수 있다.

git push

less than 1 minute read

$ git push - Update remote refs along with associated objects git push 로컬 레파지토리에서 추가된 커밋을 원격 레파지토리에 반영하는 명령이다. push할 때 원격 레파지토리의 커밋 히스토리가...

git fetch

less than 1 minute read

$ git fetch - Download objects and refs from another repository git fetch 로컬에는 없지만, 원격 저장소에는 있는 히스토리를 모두 가져온다. 자동으로 merge 되지 않기 때문에 따로 해줘...

git 시작

1 minute read

Git ★ 재밌는 깃 시작~! 깃 정말 중요합니다! 개인적으로 github 시작하기전에 git 부터, gui 도구를 사용하지 않고 cli 로 배우고 사용하는 것을 추천합니다! 기존에 작성했던 내용을 깃블로그로 이전 중 입니다. (git.txt)

git status

less than 1 minute read

$ git status - Show the working tree status git status 깃에 의해 관리되고 있는 상태를 보여주는 명령어이다. 자주 쓰이는 명령어이다.

git rm

less than 1 minute read

$ git rm - Remove files from the working tree and from the index git rm Git에서 파일을 제거하려면 git rm 명령으로 Tracked 상태의 파일을 삭제한 후에 (정확하게는 Staging Are...

git log

less than 1 minute read

$ git log - Show commit logs git log 커밋 히스토리를 조회하는 명령이다.

git init

less than 1 minute read

$ git init - Create an empty Git repository or reinitialize an existing one git init 이 명령은 .git이라는 하위 디렉토리를 만든다. .git 디렉토리에는 저장소 버전관리에 필요...

git diff

less than 1 minute read

$ git diff - Show changes between commits, commit and working tree, etc git diff 파일의 내용을 비교해주는 명령이다. CLI 상으로 보기힘든 부분을 외부 도구를...

git config

less than 1 minute read

$ git config - Get and set repository or global options 깃의 환경설정 명령어이다. 환경설정을 잘 활용하면 효율적으로 깃을 사용할 수 있게된다. 설정은 key=value 형식으로 이루어지는데, Git은 여파 설정 파일을 참조하...

git commit

less than 1 minute read

$ git commit - Record changes to the repository git commit index 영역의 내용을 기반으로 커밋 오브젝트를 생성하는 명령이다. 커밋 오브젝트에는 부모 커밋의 해시 값과, root tree 해시 값에...

git checkout

less than 1 minute read

$ git checkout - Switch branches or restore working tree files git checkout 특정 커밋의 상태로 전환하는 명령이다. 체크아웃의 상세한 내용은 추후 채워넣겠다..

git branch

less than 1 minute read

$ git branch - List, create, or delete branches git branch 현재 로컬의 브랜치 리스트를 조회하는 명령이다. 브랜치의 상세한 개념은 추후 내용을 채워넣겠다..

git add

less than 1 minute read

$ git add - Add file contents to the index git add Index, 다른 말로 Staging Area 영역에 깃에 의해 추적되는 파일들의 상태를 기록하는 명령어이다. commit 을 수행하기 전 필수로 거쳐야할...