LoginSignup
10
4

More than 3 years have passed since last update.

ローカルブランチがプッシュできない問題の解決

Posted at

はじめに

ローカルブランチがプッシュできない問題があったので、他の人たちや、自分の備忘録のために書いておきます。

エラー

The Remote branch '' (Local branch = 'sprints/Mycompany_sprint-1') is invalid. Ref names must follow git ref-format rules: https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html Completed with errors, see above.

だったり

The リモートブランチ '' (ローカルブランチ = 'gnome') is invalid. Ref names must follow git ref-format rules: 

だったり、ブランチをプッシュするときにエラーが起きます。

解決方法

こちらのページを参考にしました。

こちらのページの回答には

This seems to be a bug affecting SourceTree for Windows version 3.3.4: 
https://jira.atlassian.com/browse/SRCTREEWIN-12593

A workaround until the bug is fixed is to untick and
 retick the branch checkbox in the push dialog.

と書かれています。
翻訳すると

これは、Windowsバージョン3.3.4のSourceTreeに影響するバグのようです:
https://jira.atlassian.com/browse/SRCTREEWIN-12593

バグが修正されるまでの回避策は、
プッシュダイアログのブランチチェックボックスを選択解除および再選択することです。

となっていました。
SnapCrab_NoName_2019-12-17_23-26-29_No-00.png

上の画像の一番左のチェックボックスをすべて外し、その後選択し直します。(一つずつの場合のみ確認済み。すべて選択/解除は未確認)
すると何かしらの設定が走るのか、無事pushに成功しました。

終わりに

参考にしたページには3.3.4のバグと書かれておりましたが、3.2.5.3517でも発生が確認できました。

10
4
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
10
4