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

Bitrise.ioでブランチ名を指定してcheckoutする

Posted at

Bitrise.ioのgit-cloneモジュールを使用する際

git checkout [HASH値]

ではなく

git checkout [ブランチ名]

でチェックアウトしたい。

ハッシュ値を使用してcheckoutした場合

image.png

ブランチ名を使用してcheckoutした場合

image.png

方法

コミットのハッシュ値が設定されていると、ブランチ名よりもハッシュ値が優先して使用されるため。
Clone ConfigGit Commit to cloneを空にする。

image.png

参考

Clones a repository based on the provided inputs.

If pull_request_id is provided then all other git checkout parameters will be ignored. If a git commit is provided it will ignore the tag and branch parameters. If no git commit but a tag is provided then it will ignore the branch parameter. If no branch parameter is provided then it'll skip git checkout.

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