Specify branch name with git init
This commit is contained in:
parent
b138a43b80
commit
d00760732d
1 changed files with 1 additions and 2 deletions
|
@ -15,8 +15,7 @@ module Git
|
|||
def initialize
|
||||
@path = Dir.mktmpdir
|
||||
|
||||
git 'init'
|
||||
git 'branch', '-m', 'main'
|
||||
git 'init', '-b', 'main'
|
||||
git 'config', 'user.name', 'Test User'
|
||||
git 'config', 'user.email', 'test@example.com'
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue