Git
設定相關
使用者
config git config --list
git config --local user.name "(userName)"
git config --local user.email "(e-mail)"
git config --global user.name "(userName)"
git config --global user.email "(e-mail)"
---------------------------------------------------;
遠端
remote git remote add (name) (remote@git)
git remote set-url (name) (remote@git)
git remote remove (name)
git remote -v 查詢
git push -u (name) (branch)
--------------------------------------------------;
Merge
git checkout master git pull git checkout branch git rebase master (可能有衝突) git checkout master git merge branch git push
Commit
git add . git commit -m "feature release" git push git status
create new branch
git branch new-branch git checkout new-branch git push --set-upstream origin new-branch