기타
[git] cli 로 깃 올리기
배고파요
2024. 6. 29. 14:21
728x90
📍git remote -v
- 현재 연결되어 있는 remote 저장소 주소를 확인.
📍git remote set-url orign "변경하려는 깃주소"
- git remote repository url 변경
📍 git status
- git에 올릴 게 있는 지 확인.
📍 git add
- git에 올림.
📍 git commit -m '커밋 메세지'
📍 git push origin main
- main으로 깃 올림.
📍 깃에 새로운 branch 만들어서 올리고 싶다면?
- git init
- git add .
- git commit -m '메세지'
- git branch -M new-branch-name
- gir remote add origin 깃-레파지토리-링크주소
- git push -u origin new-branch-name
출처 :
https://owening2.tistory.com/6
https://onedaythreecoding.tistory.com/entry/Git-리모트-저장소-remote-url-주소-확인-변경-명령어
개발 공부를 위한 블로그 입니다.
오류가 있다면 댓글로 알려주세요!
감사합니다.

728x90