Open two GIT branches in two separate IDE instances?

We are migrating from Mercurial to GIT.

With Mercurial we have separate repositories compared to one repo with separate branches in GIT.

  • git with development, staging and production branches
  • ssh not working, muxserver_listen bind(): No such file or directory
  • How to keep a pushed/splitted subtree up-to-date?
  • Eclipse 'Unhandled loop exception' on Team > Commit
  • How to connect Visual Studio 2015 to an existing Gitlab project?
  • Atlassian “logo” after pushing to bitbucket
  • Thus with Mercurial it’s straightforward to open two separate repos in two separate instances of your IDE. How can you do this with GIT as there is (I believe) only one branch current at a time in a GIT repo?

    Note: this similar ticket refers to opening two branches in the same IDE. The difference with this question is we’re happy to open them in two separate IDE instances. Though I’m guessing the answer is the same – you can’t do it.

  • filter-branch on current branch and current director only
  • Cherry pick using TortoiseGit
  • Git, Mac OS X and accented characters
  • Trying to find a good strategy using Git for personal development on local/personal machine
  • How to preserve history on bitbucket while moving files within a repository
  • Meaning of the GitHub message: push declined due to email privacy restrictions
  • 2 Solutions collect form web for “Open two GIT branches in two separate IDE instances?”

    You are correct: there is only one active branch at a time. The best you can do is to clone the repository twice on your local machine into two different directories, and then simply open up the appropriate directory in each IDE instance.

    After making the two clones as David Deutsch suggested, I recommend picking one as primary and creating a symbolic link to the .idea directory from the secondary clone to the primary clone. This way you will have the same config in all clones.

    ln -s primary_clone/.idea secondary_clone/.idea
    

    This assumes you use the .idea project config format and that you do not check config to the repository (in that case you are obviously all set from the get go)

    it mostly works, only sometimes Idea prompts you with dialog box to reload other projects if you change some setting in the currently active one. You can refuse, though.

    Git Baby is a git and github fan, let's start git clone.