Git/Github小抄

Steven Wang
1 min readJul 5, 2020

--


GitHub申請帳號


Git安裝

Git初始設定

終端機指令 設定name / email link github

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

登入Github
新增repo 設定repo name

終端機指令及說明
cd upload_folder

第一次echo "# hi_test" >> README.md #print str to README.md
git init #初始git
git add README.md #add
git commit -m "first commit" #版本信息 str
git remote add origin https://github.com/ka666wang/hi_test.git #連結local and Github
git push -u origin master #push上傳
第二次git add README.md #add
git commit -m "first commit" #版本信息 str
git push -u origin master #push上傳

--

--

Steven Wang
Steven Wang

No responses yet