git (3) 썸네일형 리스트형 [Git Error] error: failed to push some refs to "http://github.~" 문제 처음 로컬에서 git init 입력 후 원격으로 git push -uf origin main으로 하려고 했을때 Enumerating objects: 7379, done. Counting objects: 100% (7379/7379), done. Delta compression using up to 8 threads Compressing objects: 100% (5010/5010), done. Writing objects: 100% (7379/7379), 15.01 MiB | 97.88 MiB/s, done. Total 7379 (delta 1593), reused 7379 (delta 1593), pack-reused 0 remote: Resolving deltas: 100% (1593/1593).. 협업한 repository 내 github repository 로 가져오기 1. git clone --mirror old-repository.git(옮기고 싶은 git주소) 2. cd old-repository 3. git remote set-url --push origin new-repository.git(새로운 git주소) 4. git push --mirror Git log 옵션/reset/commit 옵션 log -p (버전에 대해 파악) log -p 옵션을 사용하면 버전간의 차이점과 과거 어느시점의 내용을 파악할 수 있다. 각각의 커밋과 커밋사이 소스상의 차이점을 알 수 있다. commit 96f4ef4bc9d69df35bdd54c1529680eba9fc61b2 (HEAD -> master) Author: jeongmin Date: Tue Dec 27 13:57:17 2022 +0900 4 diff --git a/f2.txt b/f2.txt index 2456b16..d170595 100644 --- a/f2.txt +++ b/f2.txt @@ -1 +1 @@ -source : 2 +source : 4 commit 5d6ec50fbacee1d06a4c2d7e67a7a516321ca53a Author: j.. 이전 1 다음