[git] 레포지토리 변경하기

2023. 11. 4. 16:37·과거 기록
  • 기존 레포지토리의 데이터를 새로운 레포지토리로 옮기기 위함 입니다.

 

 

  • git clone
git clone [기존 레포지토리 주소]
  • .git 삭제
rm -rf ./.git
  • git 초기화
git init
  • branch 생성
git branch -M [브렌치 명]
  • add commit
git add .
git commit -m "[ADD] commit"
  • remote 확인 후 추가
git remote -v
git remote add origin [새로운 레포지토리 주소]
  • push
git push -u origin [브렌치 명]

'과거 기록' 카테고리의 다른 글

[오류] what went wrong: cannot locate tasks that match ':api:apiapplication.main()' as project 'api' not found in root project 'api'. / IntellJ Cummunitiy Edition 멀티 모듈 구성 오류  (0) 2024.01.12
[SpringBoot] Spring Security 6.X SecurityConfig 클래스 작성 방법  (0) 2024.01.10
[Oracle] M2 맥에서 colima start 안되는 오류 해결 방법 / M2 맥에서 오라클 DB 이슈 해결  (0) 2023.11.06
'과거 기록' 카테고리의 다른 글
  • [오류] what went wrong: cannot locate tasks that match ':api:apiapplication.main()' as project 'api' not found in root project 'api'. / IntellJ Cummunitiy Edition 멀티 모듈 구성 오류
  • [SpringBoot] Spring Security 6.X SecurityConfig 클래스 작성 방법
  • [Oracle] M2 맥에서 colima start 안되는 오류 해결 방법 / M2 맥에서 오라클 DB 이슈 해결
VANEL
VANEL
break;
  • VANEL
    VANEL의 블로그
    VANEL
  • 전체
    오늘
    어제
    • 분류 전체보기
      • 오류
      • develop
      • 과거 기록
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 이전 블로그
  • 공지사항

  • 인기 글

  • 태그

    JWT
    Spring
    Spring boot
    restdocs
    코드리뷰
    WebRTC
    coturn
    테스트코드
    spring security
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
VANEL
[git] 레포지토리 변경하기
상단으로

티스토리툴바