I am developing code in my (private) repository on branch 'my_branch'.
After some development I am happy with what I have done and I would like to save 'my_branch' to master repository (so it will not get lost in case my disk has a fault).
But I don't want to merge my changes to master branch yet.
I used command:
git push
and then:
got clone
and cloned master repository to a different directory. But I noticed that on that directory when I change to my_branch the files do not contain my changes.
Please help!
(It seems to me that everyone normally works in similar way: from time to time backing up your branch whilst not yet merging it to master?)
I used to work in ClearCase and what is good about it is: as soon as you check-in your file in your private branch, it can never get deleted, but from the other hand it is not on main branch and you can continue developing your code without disturbing other developers.