0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Gitで新規ブランチ作成・チェックアウトを同時に行う方法

Posted at

#やり方
オプションで「-b」をつける。

git checkout -b

「testブランチを新規作成」 + 「testブランチにチェックアウト」したい場合は
以下の様にする。

git checkout -b test

#記事を作成した理由
・個人用メモとして作成。
・チェックアウトとブランチ作成を別々に行うのが面倒だったため。

#参考情報
https://git.command-ref.com/cmd-git-checkout.html

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?