local에 연결된 git remote 백업, 변경하기
2023. 1. 11. 23:26ㆍComputer Tips
728x90
1. 기존 remote repository 기준 pull하고 전체 push
git pull
git add .
git commit -m "the last push for cleansing repository"
git push
2. 기존 remote repository 제거
git remote remove origin
728x90
3. 새 remote repository 추가
git remote add origin https://github.com/깃헙계정명/리포지토리이름
4. 새 remote repository가 등록되었는지 확인
git remote -v
- origin으로 새로운 remote 주소가 등록되어 있다면 성공!
반응형
'Computer Tips' 카테고리의 다른 글
[linux] add-apt-repository command not found 해결방법 (0) | 2023.02.10 |
---|---|
[python] plotly 코드에 이상없는데 결과 시각화가 안 될 때 (0) | 2023.01.18 |
fatal Not a valid object name master [git] 에러 해결 (0) | 2023.01.11 |
OpenAI's ChatGPT 테스트 (0) | 2022.12.31 |
[bit.ly] 단축 URL 만들기(shorten), 단축 URL 복원하여 원본 URL 확인하기 (0) | 2022.12.13 |