How to get src folder in project-root folder in github when staged from eclipse using egit

Current scenario:

In Eclipse, when we create a project, say a PyDev project called "SimpleGit", the folder structure created by eclipse will look like

EclipseWorkingDirectory / SimpleGit / SRC /
right?

If we add this to git using Egit by right-clicking on the SimpleGit project folder, then Team> Share, the folder structure in which the repo is created, like this

Parent folder /SimpleGit/.git

Parent folder / SimpleGit / SimpleGit / src /

And when we put it on a remote github, everything will be under

Username / SimpleGit / SimpleGit / src /

So, when we look in GitHub in the root folder of the project (Username / SimpleGit), we cannot see the source folder. It will be in a different "SimpleGit" folder. How can we avoid this? I want me to get my original forlder (src) specified in the Project Root directory when creating from an already built project in eclipse using egit. How to do it?

I want like this: https://github.com/nicholasbishop/blender

Not like that: https://github.com/afilash/SimpleGit

+4
source share
1 answer

this cannot be done with eGit - it assumes the structure of the Eclipse project.

But this can be done using git . Just create a repository in the SimpleGit folder executing 'git init'. From now on, you will have to manage the git repository either by git itself (command line) or by another user interface. SourceTree works great for me.

+2
source

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


All Articles