$git push origin master 報錯：
Warning: Permanently added the RSA host key for IP address '22.214.171.124' to the list of known hosts. To github.com:***/***.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'email@example.com:***/***.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
執行：$git pull 命令，沒有將項目更新，並提示下圖：
$ git pull remote: Enumerating objects: 4, done. remote: Counting objects: 100% (4/4), done. remote: Compressing objects: 100% (2/2), done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (3/3), done. From github.com:ckx0709/MyOrcl * [new branch] master -> origin/master There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=<remote>/<branch> master
git branch --set-upstream-to=origin/remote_branch your_branch
$git branch :本地分支
$git branch -vv（兩個v），就能夠看到本地分支跟蹤的遠程分支。
$ git push origin master