Jump to content

Version control in IntelliJ


bumzag

Recommended Posts

Other than git, what's best practice for version control in IntelliJ? I'm trying to create a new version of a script I've made with the same source code in order to maintain the original version.

I've tried doing it by going File > New > Project from existing sources..

and then select the folder containing the IntelliJ project, but nothing happens.

Edited by bumzag
Link to comment
Share on other sites

No question.. Git is the best practice.

If you're creating an entirely new script with no intention to merge the 2 together then make a new git repo.

If you're creating a new version of an existing script, like a beta or alpha version, then make a new branch within the same repo.

 

Googling git best practices you get a lot of branching strategies, commit tagging and naming conventions etc. But those are only really useful when you run a large software shop with multiple developers. If you're working alone, just find out what works for you. Github offer free private repos now and if you're looking to roll with your own selfhosted gitlab is really nice but potentially a bit overkill for a few repos.

Link to comment
Share on other sites

1 minute ago, bumzag said:

Yeah this was exactly the reason 😔 I'll spend the time to look into it and just deal with the learning curve. Thanks.

The basics are not too bad, you can get quite far with just basic committing and branching. I'd suggest doing it from the command line instead of using any git clients or embedded things. Maybe do some experiments with a dummy project first though!

GL & let me know if you have any questions

Apa

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...