[git] 특별한 명령어

  • 이미 커밋하여 .gitignore 로 안될때
    즉, git add . 로 한꺼번에 indexing 하는 것에 제외시킬때
    git rm --cached *.log 참고

  • untracked 된 파일 제외하여 status 실행
    git status -uno (untracked 파일 제외) 참고

  • 커밋 된 파일의 수정 사항 무시하기
    git update-index --assume-unchanged [file path] 참고

  • force “git pull” to overwrite local files
    git reset --hard origin/master 참고

  • 로컬 파일을 처음으로 remote 에 push
    git remote add origin https://aaa.com/bbb.git

  • git 서버가 옮겨졌을때
    git remote set-url origin https://aaa.com/bbb.git

  • github help
    https://help.github.com/

avatar

코딩공작소

코딩에 관한 여러가지 방법 모음 : 개인 저장소입니다