Flyway Teams - Initial push to Github Repository resulted in the following error
JimmyG
Posts: 9 New member
Hello,
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?
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?
Tagged:
Best Answer
-
JimmyG Posts: 9 New memberTurns 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.
Answers
We recommend running
git 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 setting
init.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