Comments
3 comments
-
I'm still trying to figure this out. I've never set up a repository from scratch so I'm sure there's something basic I'm just not doing right. I've gotten past the git error, but now I'm having a new issue. As you can see in the screenshot above my company's repository automatically creates an initial branch called "main". However, it seems Flyway creates an initial branch called "master". When I do the initial push from my local repository to the remote it's creating a new branch called master. I've tried switching master to the default branch and deleting main, but it says I can't do that since there are policies associated with it. Any suggestions?
-
Turns out I didn't have the proper permissions for my company repositories to delete the main branch. I got the proper permissions and was able to delete it.
-
Hi,
We recommend runninggit init
to initialize your repository. This command uses your Git configuration to determine the default branch name. By default, Git sets the branch to master, unless you've configured it otherwise.
To set main as your default branch name, you can update your Git configuration by settinginit.defaultBranch
to main. Once updated, all new repositories you initialize will default to main as the branch name.
For more detailed instructions, feel free to check out this guide on configuring your Git settings. Let me know if you have any questions or need further assistance.Best,
Hassan
Product Support Engineer
Add comment
Please sign in to leave a comment.
This is my first attempt to set up a flyway project. The project appears to have set up correctly, and I also successfully created a repository in my company's Github environment. After committing the changes in my project I tried to push and got this error:
The repository it's trying to push to looks like this:
Any idea what I did wrong?