by 李子顥
git config --global user.name "Your Name"
git config --global user.email "Your Email"
一開始git會要求要先設定名稱跟E-mail
這裡在之後要設定為GitHub或其他的帳號
不過也可以設定無效的使用者名稱
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track)
touch < file name >
git add file1 file2
git reset file1 file2
git commit -m"message"
A - B (HEAD) - C (master)
git checkout -b new-branch
,則會變成A - B - C (master)
\
D (HEAD, new-branch)
git branch "branch name"
git checkout "branch name"
git checkout -b "branch name"
git branch Develop
git remote add origin https://github.com….
git push "remote-name" "branch-name"
git remote add "remote-name" "remote url"