문서의 이전 판입니다!
1. git git 명령어 OPTION https://git-scm.com/docs 2. git client Github Desktop - Github Sourcetree - 아틀라시안 GitKraken Git bash - Terminal 3. Download https://git-scm.com/download/ 4. 설정 .gitconfig (깃의 설정이 저장됨) $> git config --list $> git config --global -e // -e -> edit $> git config --global core.editor "code --wait" // git 기본 editor 지정 , --wait -> foreground $> git config --global user.name "Foo" $> git config --global user.email "Bar@repia.com" $> git config user.name Foo $> git config user.email Bar@repia.com $> git config core.autocrlf true // windows $> git config core.autocrlf input // macOS $> git status $> git config --global alias.st status // status에 대한 alias 지정 $> git st $> git --h 5. 명령어 $> cd projects $> mkdir GitFolder $> cd ${GitFoler} $> git init // 1. 깃 초기화, .git 폴더 생성, master branch 생성, 삭제시 .git 폴더 삭제하면 됨 $> git config -h // 도움말 $> git status -h $> git status -s // short 6. git workflow working directory untracked (git이 모름) -> git add * -> git rm --cached * tracked (git이 알고 있음) unmodified modified <- checkout -> git add stating area -> commit .git directgory git history -> push <- pull remote 7. ignore tracking이 필요 없을 때 사용 $> echo *.log >.gitignoroe x터미널 제안 macOS: iTerm21 Windows: cmder PowerShell $> code . (윈도우는 디폴트로 설정되어 있음) // $> open . (macOS 에디터로 열기) $> explorer . (윈도우 탐색기가 열림)
Checkout conflict with files: 대상 파일
Checkout conflict with files: 대상 파일 (ProjectName/source/file...)
Eclipse 에서 git pull 실행 시, The current branch is not configured for pull 에러 발생
Eclipse 에서 git pull 실행 시, The current branch is not configured for pull 에러 발생