Skip to content

unable to set initial-branch #1371

Answered by Byron
simkimsia asked this question in Q&A
Oct 25, 2021 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

GitPython does nothing more but to execute git like so: git init --initial-branch=main, which might not work with all git versions. My suspicion is that the flag is a more recent feature than the config option, which is why that one works. On 2.30.1 it's definitely available, and it seems to have been added about a year ago.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@simkimsia
Comment options

@Byron
Comment options

@simkimsia
Comment options

@Byron
Comment options

@simkimsia
Comment options

Answer selected by simkimsia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1370 on October 26, 2021 12:48.