행위

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

DB CAFE

(Command line instructions)
 
10번째 줄: 10번째 줄:
 
<source lang=sh>
 
<source lang=sh>
 
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 "xxxx@gmail.com"
 
</source>
 
</source>
  

2021년 4월 7일 (수) 22:33 기준 최신판

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 "xxxx@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