[GIT]使用GITLAB方式
假設建立好了GITLAB帳號:mming
ssh-key也加入server了
Git global setup:
指令
- git config --global user.name "mming"
- git config --global user.email "[email protected]"
Create Repository
指令
- mkdir test
- cd test
- git init
- touch README
- git add README
- git commit -m 'first commit'
- git remote add origin [email protected]:mming/test.git
- git push -u origin master
Existing Git Repo?
- cd existing_git_repo
- git remote add origin [email protected]:mming/test.git
- git push -u origin master