- 安裝homebrew
- 安裝git
- 註冊github
- 設定git config
- 學習git基本指令
- 使用github
參考自:
1. 安裝homebrew:
2. 安裝git
brew install git
3. 註冊github
4. 設定git config
git config --global user.name "Your Name Here"
git config --global user.email "your_email@example.com"
5. 學習git基本指令
git init
git add .
git ci -m ""
git checkout
git checkout -b "foo_branch_name"
6. 使用github
git clone https://github.com/foo_repository.git
(或者是 git init; git remote add origin foo_repository_url )
git pull origin foo_branch_name
git push origin foo_branch_name
.
No comments:
Post a Comment