How to create a default branch with Eclipse?

When I create a repository in Git, it says: "This repository is empty by default!"

I used to have a main branch and a source button with SSH, HTTP.

So, how can I create this default branch without using a terminal?

+4
source share
2 answers

Thank you all, but I solved my problem.

In the repository admin panel, you just need to check the GitHub pages, it creates the gh-pages branch and shows the source button with SSH, HTTP.

+1
source

When creating a new empty git repository, you will have an empty default branch until your first commit.

When using EGit, you can create a new git repository from the git Repositories view. See Creating a repository . When this is done, I create workspace projects, uncheck the "default location" and specify a directory in my newly created git repository. There is more discussion of creating git repos in relation to the workspace in Considerations for git Repos .

+1
source

Source: https://habr.com/ru/post/1382561/


All Articles