본문 바로가기

git5

[Git] git 특정 커밋 다운 1. clone repository git clone [your repository https or ssh]git clone git@github.com:seowlee/exchange-test.git 2. git log 확인git log원하는 커밋 복사 github에서 확인 할 경우-> 원하는 커밋 복사  3. 원하는 커밋 버전으로 받기git reset --hard [commit id]  참고 :https://ddbobd.tistory.com/entry/git-%ED%8A%B9%EC%A0%95%EB%B2%84%EC%A0%84-clone%ED%95%98%EA%B8%B0 2024. 5. 8.
[Git] git clone change directory name git clone 시 repository와 다른 이름의 폴더 생성 후 clone 하기 git clone [HTTPS||SSH repositoryURL] [Directory Name] # example git clone git@github.com:sferik/sign-in-with-twitter.git signin repositoryURL : clone 할 repository 주소 directory name : repository를 local에 복제할 위치. 참고 : https://stackoverflow.com/questions/8570636/change-name-of-folder-when-cloning-from-github https://www.lainyzine.com/ko/article/git-clo.. 2024. 1. 3.
[Git] 강제 pull 하기 Git 강제 pull 1) remote repository에서 최신 commit 정보 가져와 2) head를 옮긴 후 3)받아오기 1. remote repository에서 최신 commit 정보 가져오기 git fetch --all 2. head를  해당 repository branch의 최신 commit을 가리키게 하기 git reset --hard origin/ git reset --hard origin/master 3. local에 commit 을 병합 git pull 참고 : https://frontdev.tistory.com/entry/GIT-Conflict%EC%B6%A9%EB%8F%8C-%EB%82%AC%EC%9D%84-%EB%95%8C-%EA%B0%95%EC%A0%9C%EB%A1%9C-P.. 2023. 11. 2.
[Git] git clone 특정 브랜치 git 특정 브랜치 clone 하기 리포지토리를 클론한 다음 모든 브랜치들을 가져온다(fetch). 그리고나서 특정한 브랜치로 전환(checkout)한다. git clone --branch 또는 git clone -b 참고 : https://www.freecodecamp.org/korean/news/git-clone-branch-how-to-clone-a-specific-branch/ 2023. 11. 1.
[Git] git 원격저장소 연결하기 github에 원격 저장소 생성하기 셋업 방법 echo "# market-bapp-private" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/seowlee/market-bapp-private.git git push -u origin main git remote add origin https://github.com/seowlee/market-bapp-private.git git branch -M main git push -u origin main 로컬 저장소에 원격저장소 등록하기 로컬에서 원격저장소로 push 할 파일들이.. 2022. 8. 18.