LoginSignup
0
0

More than 1 year has passed since last update.

「リモートブランチをローカルへ」 「一旦退避&カムバック」

Posted at

以前部下の方々が困っていたため、打ち込んでたのをそのまま共有したGitのコマンドです。

リモートブランチをローカルへ

git fetch
//リモートブランチの確認
git branch -r
//リモートをローカルに持ってくる
git checkout -b 新規ローカルブランチ リモートブランチ
git checkout -b branch origin/feature/branch

一旦退避 & カムバック

git stash
git stash apply stash@{0}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0