본문 바로가기
코딩에 유용한 정보

깃허브 명령어

by 몽상크리에이터 2024. 6. 11.

https://gist.github.com/480/4681b67d2a906db8c6c1321cc678f05f

 

github 리모트 리포지토리 변경하기

github 리모트 리포지토리 변경하기. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

깃 리모트 변경 하기

기존 리포지토리 깔끔하게 pull / push

git pull
git add .
git commit -m "clean push"
git push

기존 리포지토리 remote 제거

git remote remove origin

새 리포지토리 remote 추가

git remote add origin https://github.com/계정/리포지토리

https://seolahchloe.tistory.com/entry/Git-%EC%98%A4%EB%A5%98%ED%95%B4%EA%B2%B0-Updates-were-rejected-because-the-tip-of-your-current-branch-is-behind-its-remote

 

[Git - 오류해결] Updates were rejected because the tip of your current branch is behind its remote..

기껏 배워놓은 깃을 다른 공부 진도나간다는 핑계로 커밋을 안하고 있었더니 다 까먹나보다. 사실 이미 다른 소스코드들을 커밋해놓은 상태였는데 커밋하기 전에 디렉토리를 옮긴다고 이것저

seolahchloe.tistory.com

https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html

 

[Git] git add 취소하기, git commit 취소하기, git push 취소하기 - Heee's Development Blog

Step by step goes a long way.

gmlwjd9405.github.io

 

https://usingu.co.kr/frontend/git/github-%EA%B8%B0%EB%B3%B8-%EB%B8%8C%EB%9E%9C%EC%B9%98%EB%AA%85-%EB%B3%80%EA%B2%BD-main-master/

 

[Github] 기본 브랜치명 변경 (main, master) - git | UsingU

Github에서 2020년에 리포지토리의 기본 브랜치명을 master에서 main으로 변경하였습니다. Github의 기본 브랜치명을 변경하는 방법과 로컬의 기본 브랜치명을 변경하는 명령을 같이 포스트합니다.

usingu.co.kr