V
V
Vladislav Kolotsei2016-01-07 23:10:44
Java
Vladislav Kolotsei, 2016-01-07 23:10:44

Adding two projects to git (Eclipse)?

I have two projects open in Eclipse in one workspace. For the first project, I made a commit and it was assigned an id (Strings 1). Then I pushed the second project to git and it was already given a different id (Strings 2). Next, I made changes in the first project and now I need to add it to git. How can I do that? After all, the last added project is my second and, accordingly, the id for the second project. Below is a photo of the git history. d9f56927fb804d7780a74b8a840c2ca1.JPG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Medvedev, 2016-01-08
@vlady_32

You have one repository in which there are two projects -> you do not understand what you are doing.
Each project must have its own repository.
Read https://git-scm.com/book/en/v1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question