- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2022-04-14T00:40:23+00:00","default:admin","admin")
#author("2022-05-17T02:11:27+00:00","default:admin","admin")
-[[Git 全コマンド一覧 早見表:https://note.com/yukinooffice/n/ncd00b17d0656]]
*現状確認 [#j040f7be]
***git status [#n09f4438]
**git コマンドのバージョン確認 [#xe0d7347]
$ git --version
**設定確認 [#bdf7ae3a]
$ git config -l
*リモートから取得 [#a6b8cdcb]
-[[【Git】リモートブランチをローカルにチェックアウトしようとするとエラーになる場合の対処法:https://reasonable-code.com/git-remote-checkout-error/]]
-[[Git リモートのブランチが見えない:https://www.rough-and-cheap.jp/linux/git-remote-branch-not-show/]]
-リモートブランチから最新情報を取得する
$ git fetch --prune
-リモートブランチの一覧を確認する
$ git branch -r
-リモートブランチの develop をローカルにチェックアウトする
$ git checkout -b develop origin/develop