행위

"Gitlab 사용법"의 두 판 사이의 차이

DB CAFE

(새 문서: =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...)
 
(Command line instructions)
6번째 줄: 6번째 줄:
 
You can also upload existing files from your computer using the instructions below.
 
You can also upload existing files from your computer using the instructions below.
  
 +
 +
# Git global setup
 
<source lang=sh>
 
<source lang=sh>
Git global setup
 
 
git config --global user.name "cykim"
 
git config --global user.name "cykim"
 
git config --global user.email "bass4th@gmail.com"
 
git config --global user.email "bass4th@gmail.com"

2019년 6월 29일 (토) 15:49 판

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.


  1. 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