Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitLab sets the first pushed branch as the default branch #93

Open
jimr6007 opened this issue Mar 15, 2016 · 1 comment
Open

GitLab sets the first pushed branch as the default branch #93

jimr6007 opened this issue Mar 15, 2016 · 1 comment

Comments

@jimr6007
Copy link
Contributor

my repos mirrored from Github end up in Gitlab with a different default branch.
I'm guessing it is related to:
https://feeding.cloud.geek.nz/posts/setting-default-git-branch-in-bare/

but my git knowledge falls off quite a bit when we started talking about refs and such

any reason not to just "ref: refs/heads/master" on every new repo/project in Github?

@samrocketman
Copy link
Owner

Likely because GitLab automatically configures the default branch to be the first branch that is pushed to it. Perhaps a workaround or patch should be to push the default branch first and then mirror the rest.

@samrocketman samrocketman changed the title default branch GitLab sets the first pushed branch as the default branch Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants