1
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 3 years have passed since last update.

git checkout -b出来なくなった

Posted at

最近転職しました。新規に入ったプロジェクトではブランチ名の頭に#をつけるのがルール。

早速masterからgit checkout -bで新しいブランチを切ります。
git checkout -b #hoge
張り切ってエンター!
error: switch `b' requires a value
ファッ!?

調べたところ#がつく場合コメント扱いになってしまいシングルクオートで囲わないといけないそう

再び張り切って
git checkout -b '#hoge'

無事#hogeブランチができました

1
0
1

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
1
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?