3

I have an existing project in git that other users have access to and has many branches: example_project_a.

On my machine, i have a variation of that project with lots of changes on my machine and it is not in git yet.

How can I add my current project as a branch of example_project_a so that I share my changes with the group?

This similar question pushes it to the master of the existing but i don't want to affect master.

jtlindsey
  • 4,346
  • 4
  • 45
  • 73
  • 1
    You should be able to follow the same steps as in the linked answer, except use `git push -u origin ` to push to a different remote branch instead of `master`. – 0x5453 Aug 20 '19 at 16:12

1 Answers1

7

Based on the comment from 0x5453 and ref worked:

git init
git add .
git commit -m "my commit"
git remote add origin <remote repository URL>
git push origin <remote branch name>
jtlindsey
  • 4,346
  • 4
  • 45
  • 73