DevOps18 [Git Bash] 저장소의 폴더 및 파일 삭제 ⭐ 1. Git bash에서 remote repository 변경 전 pull을 통해 버전 맞추기 $ git pull origin main remote: Enumerating objects: 11, done. remote: Counting objects: 100% (11/11), done. remote: Compressing objects: 100% (9/9), done. remote: Total 9 (delta 6), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (9/9), 2.10 KiB | 46.00 KiB/s, done. From https://github.com/HJ0216/TIL * branch main -> FETCH_HEAD 184.. 2023. 1. 22. [해결 방법] fatal: refusing to merge unrelated histories 발생 Error Git Bash에서 다음 명령어를 입력할 경우, $ git pull origin main remote: Enumerating objects: 247, done. remote: Counting objects: 100% (247/247), done. remote: Compressing objects: 100% (187/187), done. remote: Total 247 (delta 73), reused 157 (delta 38), pack-reused 0 Receiving objects: 100% (247/247), 59.49 KiB | 378.00 KiB/s, done. Resolving deltas: 100% (73/73), done. From https://github.com/HJ02.. 2023. 1. 22. Git 설치 및 초기 설정 $ git push -u origin main Enumerating objects: 6, done. Counting objects: 100% (6/6), done. Delta compression using up to 8 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 520 bytes | 520.00 KiB/s, done. Total 4 (delta 1), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (1/1), done. To https://github.com/HJ0216/TIL.git 5376d70..1843ac3 main -> main br.. 2023. 1. 22. [해결 방법] error: failed to push some refs to 'https://github.com/' 발생 Error Git Bash에서 다음 명령어를 입력할 경우, $ git push -u origin main To https://github.com/HJ0216/TIL.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/HJ0216/TIL.git' ⭐ ! [rejected] main -> main (fetch first) ⭐ error: failed to push some refs to 'https://github.com/HJ0216/TIL.git' Error 발생 Error 원인 원격 저장소의 main branch에 저장되어있는 내용과 로컬 저장소의 내용이 일치하지 않아 발생 .. 2023. 1. 22. [해결 방법] fatal: The current branch main has no upstream branch 발생 Error Git Bash에서 다음 명령어를 입력할 경우, $ git push fatal: The current branch main has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin main To have this happen automatically for branches without a tracking upstream, see 'push.autoSetupRemote' in 'git help config'. ⭐ fatal: The current branch main has no upstream branch Error 발생 Error 원.. 2023. 1. 19. [해결 방법] fetal: bad source 발생 Error Git Bash에서 다음 명령어를 입력할 경우, $ git mv Machine_Learning ai fatal: bad source, source=Machine_Learning, destination=ai/Machine_Learning ⭐ fetal: bad source Error 발생 Error 원인 1. 동일한 폴더 이름을 대소문자만 변경하는 경우 2. 변경이 필요한 file name을 잘못 지정한 경우(⭐) -> ai로 이름이 변경되어 Machine_Learning이라는 폴더가 없음에도 바꿀 대상으로 Machine_Learning을 지정 -> git status를 입력하니, On branch main Changes to be committed: (use "git restore --s.. 2023. 1. 19. 이전 1 2 3 다음