J
J
Juris2018-11-19 23:14:48
git
Juris, 2018-11-19 23:14:48

Java projects in IDEA - publication on github - how to implement?

Good day!
I work on 2 machines - I want to commit a project written in Java to github using IDEA. The next question is which of the project structure do I need to commit to github so that I can continue this project on these 2 machines without any problems. Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Eremin, 2018-11-20
@EreminD

1. go here - https://www.gitignore.io/
2. write Java, Maven, Intellij what else do you use in your work
3. Generate a file
4. Put the result in the root of the project in the ".gitignore" file and commit it
5. That's it, now only the necessary files go to git, and everything that is generated locally and is not needed on other machines is ignored by git

U
User Unknown, 2018-11-19
@aveBHS

You can install GitHub on both machines and just link the project folder to the repository. All projects on VS did this. On one machine I wrote PUSH, on the other I downloaded Go Ahead!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question