RammusXu / rammusxu.github.io

My profile
https://rammusxu.github.io/
2 stars 0 forks source link

導入git的初始化指令 #9

Closed RammusXu closed 8 years ago

RammusXu commented 8 years ago

Git的環境變數設置

git config --global user.name "RammusXu"
git config --global user.email "comte_ken@hotmail.com"

開新的repository

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

在現有的資料夾/專案,加入git版本控制

cd existing_folder
git init
git remote add origin git@gitlab.com:RammusXu/hello-project.git
git add .
git commit
git push -u origin master