GIT Repo 초기 설정

김상선·2023년 4월 19일
0

Git global setup

git config --global user.name "block-svcop (4:33 배문원, 블록체인팀)"
git config --global user.email "baemoonwon@433.co.kr"

새 저장소 만들기

git clone [git URL]
cd rrs-homepage-prototype
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Push an existing folder

cd existing_folder
git init
git remote add origin git@git01.four33.co.kr:block-svcop/rrs-homepage-prototype.git
git add .
git commit -m "Initial commit"
git push -u origin master

Push an existing Git repository

cd [기존 저장소]
git remote rename origin(기존 저장소 이름) old-origin(변경할 이름)
git remote add origin(새로운 저장소 이름) [Git URL]
git push -u origin --all
git push -u origin --tags

profile
일요일을 좋아합니다.

0개의 댓글