I have a project that needs to diverge into 3 different branches. Those branches will never be merged anymore (though certain fixes might have to be applied to all 3 branches). In the image below "master" is one of the branches. "Branch1" and "Branch2" were supposed to be separate branches showing a tree ("Graph" on the left column indicates there is no tree). From googling I understand green means local branch only. So how can I push this local branch to the remote and then check out that branch for making modifications (and pushing modifications to that branch).
Edit:
After "git push origin master" I now see origin/master. My next steps were: git branch branch3. Now I had at the bottom green(branch3)/red(master)/beige(origin/master), above branch1 green/beige and above branch2 green/beige.
git checkout branch3 Now the red box was on branch3 and master became green
I made a change to the project and then git add [changedFile] git commit -m "..." git push --set-upstream origin branch3
Now I had what I really was looking for which is: