728x90
반응형

저장소 작업물 이관 ( 커밋 히스토리 포함 )

기존의 repository remote 제거

git remote remove origin

새로 생성한 repository remote 추가

git remote add origin https://github.com/[github_id]/[repo_name].git

코드 push

git push -u origin [branch name]

코드 push 에러날때(기존 작업물이 있을경우) 강제 푸쉬

git push -u origin [branch name] --force 

저장소 작업물 이관 (fork)

git clone https://github.com/UXstrategy/KCX.git

git remote add upstream https://github.com/kcxadmin/KCXWtsPublish.git

git remote -v
git pull https://github.com/kcxadmin/KCXWtsPublish.git main
git pull upstream main

gitignore 업데이트

git rm -r --cached .  
git add .  
git commit -m ".gitignore update"  
git push -u origin \[branch name(main)\]
728x90
반응형

'etc' 카테고리의 다른 글

[웹접근성] TIP  (0) 2023.06.19
에디트 플러스 젠코딩 단축키  (0) 2023.06.19
android 디버깅 방법  (0) 2023.06.14
XSS (크로스사이트 스크립트)  (0) 2023.06.14
HAML 이란?  (0) 2023.06.14

+ Recent posts