I have a project on Bitbucket, since others developers works on the same project too I decide to go with branch
in order to maintain develop
branch as clean as possible and let developers play without mess up the entire repository. I created a Local Branch
at office as image show:
I tough this isn't right since,. perhaps, I'm not able to access that branch from home to continue working on that branch. In that case which will be the right way to move the worked code to Bitbucket branch with the same name and same code. Any advice?
PS: I'm using Smartgit/HG as client
Update: hit Push To (CTRL+SHIFT+U)
I did a right click under CommonBundle-dev
at LocalBranches
and get this:
Should I "push" or not? I'm afraid to let the repository unusable or mess up others work
Update: how to merge from any branch to develop?
I have another question regarding this, see the image above:
How I can merge my branch changes to develop
branch?
Should I "push" or not?
Well, yes. Otherwise you still won't be able to access it from the outside!
I'm afraid to let the repository unusable or mess up others work
No risks. A git repository has no "files" per se but is a directed acyclic graph of commits; what you do when you add a branch is just create another branch to the graph; it will not affect any other branch.
The difference between the remote and you is that you have the "contents" of a branch "checked out" in a directory; the bitbucket remote doesn't (it is what is called a "bare" repository).