Adding a folder from an Eclipse project to a Git control source

I have an Eclipse Dynamic Web Project setup located in my local workspace. I want to host one of the project folders under Git. Is it possible?

I do not need the entire project in the repository, but only a specific folder in WebContent. I have an EGit plugin and created a new Git repository from Eclipse, but I don’t know how to add a folder to the repository (the repository and folder are currently in different places).

thank

+3
source share
2 answers

Try creating a file in this folder and add it.
For example, an empty .gitignorefile that:

  • -.
  • git

git (.. , )


Jefromi :

" git . , , . "

, git , , :

  • git repo ( -)
  • git repo , .
+1

, WebContent/MyFolder

  • MyFolder MyFolder.tmp
  • WebContent MyFolder
  • MyFolder.tmp MyFolder
  • MyFolder
  • MyFolder.tmp

Eclipse . , .

0

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


All Articles