-
| gives me WorkaroundI have to resort to this Is there a better way to do the same thing? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            Byron
          
      
      
        Oct 26, 2021 
      
    
    Replies: 1 comment 5 replies
-
| GitPython does nothing more but to execute git like so:  | 
Beta Was this translation helpful? Give feedback.
                  
                    5 replies
                  
                
            
      Answer selected by
        simkimsia
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
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.