Jump to content

Version control in IntelliJ


Recommended Posts

Posted (edited)

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
Posted

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.

Posted
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

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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