블로그
- github 파일 올리기 User@WIN-ICIG4C5OUF1 MINGW64 /c/project/paintapp (master) $ git add -A User@WIN-ICIG4C5OUF1 MINGW64 / git/ User@WIN-ICIG4C5OUF1 MINGW64 /c/project/paintapp (master) $ ait add . bash: ait: command not found
- github에 코드 푸시하기 수정 사항을 반영할 파일 이름을 git에 알려준다. git add . 폴더 안의 모든 파일이 업로드 대상이 된다.
- Git 치트시트 Git cheatsheet Configuration Set user configuration for every project if you use multiple accounts Use commands The repository setup Initialize a git repository Clone an existing repository Add the remote
- fatal: remote origin already exists. 에러 발생 시 해결방법 기존의 origin을 제거 하는 명령어인 git remote rm origin 을 입력하고 git remote add origin '깃주소'를 입력하니 정상적으로 연동되었다. https
- git status (exit code 128) fatal: not a git repository git이 꼬였을때 발생하는 문제로 .git 폴더를 제거한 후 해결할 수 있다. git init git remote add origin git add . git switch .git 재 생성된 git에 리모트를 설정한다 초기 재생성 시 파일들이 모두 unstage 상태이므로 git add .를 통해 모두 staging 한다 원하는 브랜치로 체크아웃 한다.
- 프로젝트 과거로 되돌리는 방법(2) 1) 프로젝트 폴더의 .git 폴더 백업해두기 2) reset 방법 아래 명령어로 커밋 내용 확인 - 되돌아갈 커밋의 해시 복사 (앞 6-7 글자만 복사해도 됨) : Add team 의 .git 파일 삭제하고 아까 복사해뒀던 .git 을 복붙해줌 그리고 git log 를 해주면 5개의 commit 들이 다시 돌아온 것 확인 가능 위 명령어를 실행하고 git status
- (xCode) git 허브로 xcode 프로젝트 관리시 충돌 방지 Automatically resolving git merge conflicts in Xcode’s project.pbxproj fileIf you’re like me, you hate resolving merge conflicts in Xcode’s project.pbxproj file every time both you and one of your teammates add
- git add 취소 - git add 취소
- Git - Undoing things - We can run git add to stage our changes or we can run git checkout to discard them. - git checkout Especially if we use a command like git add star, where the star is a file glob pattern used in Bash
- Git - Advance git interaction - Git commit -a : At first, you might think that git commit dash a is just a shortcut for git add followed by git commit but that's not exactly true.