행위

Gitlab 사용법

DB CAFE

Dbcafe (토론 | 기여)님의 2019년 6월 29일 (토) 15:38 판 (새 문서: =gitlab 사용법 = The repository for this project is empty You can create files directly in GitLab using one of the following options. == Command line instructions== You can also u...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
thumb_up 추천메뉴 바로가기


1 gitlab 사용법[편집]

The repository for this project is empty You can create files directly in GitLab using one of the following options.

1.1 Command line instructions[편집]

You can also upload existing files from your computer using the instructions below.

Git global setup
git config --global user.name "cykim"
git config --global user.email "bass4th@gmail.com"

1.2 Create a new repository[편집]

git clone git@gitlab.com:cykim/xmind.git
cd xmind
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

1.3 Push an existing folder[편집]

cd existing_folder
git init
git remote add origin git@gitlab.com:cykim/xmind.git
git add .
git commit -m "Initial commit"
git push -u origin master

1.4 Push an existing Git repository[편집]

cd existing_repo
git remote rename origin old-origin
git remote add origin git@gitlab.com:cykim/xmind.git
git push -u origin --all
git push -u origin --tags