Git pushing to remote branch

Viewed 239387

I tried to follow this post but got confused rather than getting my problem solved.

Here is the scenario.

I have created a branch like git checkout -b <branch_name>. I then worked on some changes and did

  1. git add .
  2. git commit -m "comment"

Now all those changes are in my uncommitted local <branch_name> branch. What i want to do is to push these changes upstream but i want to push it to a branch which doesn't exist e.g., <branch_name>_test

I don't want to push it to my <branch_name>. How can i do so.

5 Answers
Related