git 되돌리기 (reset, revert) [초보용] Git 되돌리기( Reset, Revert ) http://www.devpools.kr/2017/02/05/%EC%B4%88%EB%B3%B4%EC%9A%A9-git-%EB%90%98%EB%8F%8C%EB%A6%AC%EA%B8%B0-reset-revert/ Bite Bits/Git 2019.05.28
git gui (gitk) 에서 UTF-8 한글 깨짐 현상 개 파일내의 한글 (UTF-8) 이 git GUI 화면에서 깨져보인다. 한글을 제대로 보이게하는 방법을 찾아보다 발견 > git config --global gui.encoding utf-8 이제 잘 보인다. * 참고 : https://gutmate.github.io/2017/03/09/gitk-encoding/ Bite Bits/Git 2018.12.27
git bash 에서 한글깨짐 문제 $ git config core.quotepath false 이렇게 환경 설정하면 된단다.. 참조 : 구글 검색 Bite Bits/Git 2017.07.07
이미 commit 되어 관리 중인 파일 제외 시키기 이미 git 에 commit 되어 관리되고 있는 파일을 더 이상 관리하고 싶지 않을 때, > git rm --cached somefile.txt 하면 파일 자체는 삭제되지 않고, git 목록에서 삭제된다. 확인은 git status 로 하고. > git commit -m 'somefile is not managed.' 이렇게 commit 후, > git push orign master 이렇게 서버에 push 하고, .gitig.. Bite Bits/Git 2017.06.01
git tag 삭제하기 (로컬, 원격) # tag 지우기 $ git tag -d v2.0-rev1 # 원격지 tag 지우기 $ git push origin :tags/v2.0-rev1 # 특정 tag checkout $ git clone --branch v2.0-rev1 http://git.xxx.git Bite Bits/Git 2016.05.10
git 명령어 정리 명령어 정리 git add [Directory|파일 경로] //Untracked 파일을 Tracked 파일로 변경하거나, Tracked&수정된 파일을 staging 한다.git status //현재 상태 보기 git commit -m "commit message" //로컬 저장소에 commit(저장) git commit -a -m "commit message" // staging area 생략 commit (git add 과정 생략) git commit --amend //수정한 내용.. Bite Bits/Git 2016.04.14
git 실수로 한 commit, push 강제 취소 시키기 git reset HEAD^ git push origin -f git reset HEAD@{1} git push origin +master git reset HEAD^ // 최종 커밋을 취소. 워킹트리는 보존됨. (커밋은 했으나 push하지 않은 경우 유용) git reset HEAD~2 //마지막 2개의 커밋을 취소. 워킹트리는 보존됨. git reset --hard HEAD~2 // 마지막 2개의 커밋을 취소. index 및 워킹트리 모두 .. Bite Bits/Git 2015.12.22
현재 git 브랜치에서 local (untracked) files 지우기 파일 지우기 git clean -f 어떤 파일이 지워지는지 보기 git clean -f -n 디렉토리를 지우기 원하면 git clean -f -d 또는 git clean -fd ignored files 를 지울 땐, git clean -f -X 또는 git clean -fX ignored files 와 non-ignored files 상관없이 지우기 git clean -f -x 또는 git clean -fx (*주의 'X' 와 'x' 는 다르게 동작, 대소문자 .. Bite Bits/Git 2015.11.13