git pull
-
[GIT] merge 이슈 해결GIT 2023. 4. 10. 09:58
GIT 충돌 해결 # git push가 되지 않을때 - pull방식을 명시적으로 정하지 않았기 때문에 발생 - 레포지토리에서 pull을 받을 때, pull 전략을 명시해주어야한다 (rebase, merge, fast-forward : ff) [아래와 같은 에러 발생] warning: Pulling without specifying how to reconcile divergent branches is discouraged. You can squelch this message by running one of the following commands sometime before your next pull: git config pull.rebase false # merge (the default strategy..
-
[Git] merge, push, pullGIT 2023. 4. 4. 10:00
Git 명령어 # remote저장소에 push되어있는 브랜치를 dev브랜치로 merge하기 # 자신의 로컬에 있는 브랜치를 리모트 저장소에 있는 해당브랜치에 push한다. git add . git commit -m "커밋" git push origin 브랜치명 # merge를 담당하는 사람이 자신의 로컬에 있는 dev브랜치에 리모트저장소에 있는 두 브랜치를 모두 merge한다 git remote update (로컬에서 원격브랜치에 접근하기 위한 명령어 -fetch와 동일) # 로컬의 dev브랜치로 이동 git cehckout dev # 리모트 저장소에 push되어있는 새로운 브랜치를 merge git merge 브랜치명 # 모든 브랜치들을 로컬의 dev브랜치로 merge 했다면, 이 dev브랜치를 리모트..