Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Best practices new branches, switching branches and projects that disappear?
Best practices new branches, switching branches and projects that disappear? [message #783955] Thu, 26 January 2012 20:34 Go to next message
Cameron Missing name is currently offline Cameron Missing nameFriend
Messages: 6
Registered: November 2011
Junior Member
So picture a git environment where you have:
main branch->qa branch->dev branch->features

When a feature branch is merged down to the dev branch, continuous integration picks it up and deploys it to development.

So now I have a new feature I want to create:
1. Create new branch feature hello world
2. Branch switches automatically to the new branch "hello world"
3. I create a new project and create hello world
4. Commit changes to the branch
5. Switch back to the development branch, I am ready to merge this down.

---- Problem at this point -----
Since my project does not exist in the development branch it has been removed from eclipse as a project. What a bummer.

6. Merge the branch in.
7. Import the project and redeploy it to my local server.

What I am looking for is the best practice for my problem area.

Thoughts:
I could create the empty project in the development branch, then create my feature branch. That way the project would still exist when moving between branches.
Re: Best practices new branches, switching branches and projects that disappear? [message #784204 is a reply to message #783955] Fri, 27 January 2012 07:37 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Try a recent EGit nightly build, Kevin added a feature so that EGit remembers what projects where imported on branches and opens them again.
Re: Best practices new branches, switching branches and projects that disappear? [message #784716 is a reply to message #784204] Fri, 27 January 2012 22:48 Go to previous message
Cameron Missing name is currently offline Cameron Missing nameFriend
Messages: 6
Registered: November 2011
Junior Member
That worked amazingly! The downside is it also has broken my ability to push changes to the remote server. Now I am stuck trying to figure out how to uninstall egit. I created a separate thread for this debacle.
Previous Topic:Clone from github never finishes
Next Topic:Exception on Push to github repository
Goto Forum:
  


Current Time: Thu Apr 25 07:41:52 GMT 2024

Powered by FUDForum. Page generated in 0.03532 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top