Git
[Git] 자주 발생하는 이슈들
MoongStory
2024. 12. 25. 15:37
반응형
- 하위 디렉토리에 있는 모든 파일 추가
- $ git add -f (폴더 이름)/\*
- $ git add -f ./\*
- fatal: You have not concluded your merge (MERGE_HEAD exists).
- Please, commit your changes before you merge.
- 메시지가 뜨는 경우 Git Bash에 아래 명령어 입력
- $ git merge --abort
- 메시지가 뜨는 경우 Git Bash에 아래 명령어 입력
- Remote Branch 이름 변경
- Local에 있는 Branch 이름 변경
- $ git branch -m old_branch new_branch
- Remote에 존재하는 old_branch 삭제
- $ git push origin :old_branch
- new_branch 푸시하기
- $ git push origin new_branch
- Local에 있는 Branch 이름 변경
- Push 되돌리기
- $ git reset --hard HEAD~n
- (n은 되돌릴 작업의 갯수 ex) git reset --hard HEAD~2)
- $ git push origin master
- (암호 입력 요구함)
- $ git reset --hard HEAD~n
- [Git] file name too long 이슈
- $ git config --system core.longpaths true
반응형