Git 3

[트러블슈팅] failed to push some refs to.. 와 Diverging branches can't be fast-forwarded 에러 해결하는 법

(진행배경) 로컬 브랜치에 있는 내용을 원격 브랜치로 commit 후 push 하려고 하자 다음과 같은 에러가 나타났다. $ git push origin main To https://github.com/user/documents ! [rejected] main -> main (non-fast-forward) error: failed to push some refs to 'https://github.com/user/documents.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'g..

Git/트러블슈팅 2023.08.23

Git 설정

2022-12-26 [Git 최초 설정] 1. Git Bash 실행 2. $git config --global.user.email "홍길동@naver.com" 3. $git config --global.user.name "홍길동" 4. 브랜치명 변경 : $git config --global init.defaultBranch main 5. 잘 설정됐는 지 확인: 홍길동 부분 제외하고 입력 후 나오는 값 확인 [프로젝트 생성] 1. 폴더 생성 2. VS Code에서 생성한 폴더 오픈 3. Terminal > new terminal > git init 입력. [프로젝트 저장] 1. VS Code의 폴더 내 파일 생성, 파일명:"app.txt"(예시) 2. 현재 상태 저장 : git add app.txt 2-1..

Git/git 이론 2023.07.08

Git

2022-12-26 [Git 최초 설정] 1. Git Bash 실행 2. $git config --global.user.email "홍길동@naver.com" 3. $git config --global.user.name "홍길동" 4. 브랜치명 변경 : $git config --global init.defaultBranch main 5. 잘 설정됐는 지 확인: 홍길동 부분 제외하고 입력 후 나오는 값 확인 [프로젝트 생성] 1. 폴더 생성 2. VS Code에서 생성한 폴더 오픈 3. Terminal > new terminal > git init 입력. [프로젝트 저장] 1. VS Code의 폴더 내 파일 생성, 파일명:"app.txt"(예시) 2. 현재 상태 저장 : git add app.txt 2-1..

Git/git 이론 2023.06.28
728x90
LIST