Here is the script.
I have a series of commits in the my_new_branch branch
I want to route this branch to the remote repo as a different name and track it.
If I do this:
git push origin my_new_branch:different_name
he perfectly repels the branch.
But if I stay in my_new_branch and make another commit, if I just do
git push
he says "Everything is relevant"
Also, if I look at .git / config, I see that it has not configured the tracking branch.
Of course I can just do
git push origin my_new_branch:different_name
but how do I track it?
If i do
git checkout -b my_new_branch origin/different_name
he complains that the branch name already exists.
Thanks!
source share