githubから2つのブランチを持つリポジトリのクローンを作成しました:
git clone https://github.com/user/repo
cd repo
私が行うgit branch
と、マスターブランチのみが表示されます。それから私はgit branch -a
それがすべての枝を表示することをしました。
master
remotes/origin/HEAD
remotes/origin/master
remotes/origin/develop
それから私はしましたgit checkout develop
:
Branch develop set up to track remote branch develop from origin.
Switched to a new branch 'develop'
その後、ブランチgit checkout master
に戻ります。master
なぜgit checkout develop
違うのですかgit checkout origin/develop
(私は頭を外した状態にあると言っています)?