Created
July 31, 2019 12:57
-
-
Save donchan922/b3f73592d6c422925e306d13e8109c78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# リモートブランチのdevelopをローカルにチェックアウトできない | |
$ git checkout -b develop origin/develop | |
fatal: 'origin/develop' is not a commit and a branch 'develop' cannot be created from it | |
# リモートブランチの一覧を確認する(developがない) | |
$ git branch -r | |
origin/HEAD -> origin/master | |
origin/master | |
# リモートブランチから最新情報を取得する | |
$ git fetch --prune | |
From https://github.com/donchan922/sample | |
* [new branch] develop -> origin/develop | |
# 再度、リモートブランチの一覧を確認する(developがある) | |
$ git branch -r | |
origin/HEAD -> origin/master | |
origin/develop | |
origin/master | |
# 再度、リモートブランチのdevelopをローカルにチェックアウトする | |
$ git checkout -b develop origin/develop | |
M README.md | |
Branch 'develop' set up to track remote branch 'develop' from 'origin'. | |
Switched to a new branch 'develop' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment