Github4 [Github] Git add 취소하기 * 상황 실수로 원하지 않는 파일을 git add해서 넣은 경우 * 해결방법 git reset * Reference https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html [Git] git add 취소하기, git commit 취소하기, git push 취소하기 - Heee's Development Blog Step by step goes a long way. gmlwjd9405.github.io https://devbirdfeet.tistory.com/158 Git(31) git add 취소하기 (staging 취소) git add 명령어로 staging 한 파일들을 다시 되돌리려면 git reset 을 사용해준다. Git(31) git add 취소하.. 2023. 7. 5. [Github] 다른 컴퓨터에서 생성한 branch 가져오기 git branch -r git checkout -t origin/[branch_name] * Reference https://cjh5414.github.io/get-git-remote-branch/ Git remote branch 가져오기 Jihun's Development Blog cjh5414.github.io https://batory.tistory.com/480 Remote Branch 가져오기 (master 제외) 개인 공부 목적으로 작성한 글입니다. 아래 출처를 참고하여 작성하였습니다. 목차 Intro git remote update 원격 저장소 branch 확인 원격 저장소의 branch 가져오기 1. Intro (이미 원격 브랜치를 clone해온 batory.tistory.com 2023. 4. 24. git@github.com: Permission denied (publickey). 에러 해결, SSH 키 생성 방법 * 문제 다음 명령 을 사용하면 에러 발생 git clone --recursive git@github.com:[github_repository] 에러 내용은 아래와 같음 git@github.com: Permission denied (publickey). * Reference https://docs.github.com/ko/authentication/troubleshooting-ssh/error-permission-denied-publickey 오류: 권한이 거부됨(publickey) - GitHub Docs Git에서 sudo 명령 또는 상승된 권한을 사용해야 하나요? Git에서 sudo 명령 또는 상승된 권한(예: 관리자 권한)을 사용하면 안 됩니다. sudo를 사용해야 하는 ‘아주 좋은 이유’가 있는.. 2023. 4. 8. [Github] 새 레포에 기존 소스코드 추가 1. 깃 시작 git init 2. 주소 등록 git remote add origin [address of the git] 3. push하기 전 pull 먼저 해오기 git pull origin master 4. add / commit / push git add . git commit -m "commit" git push origin master 2022. 11. 14. 이전 1 다음