I am using Git for a while but i still have trouble understanding some features despite hours spent on blogs and tutorials... :)
I am working on a project with other people for which my boss created a repo on bitBucket.
I cloned it locally, and already did some commits to the master branch, and pulled some changes by others. I now want to do modifications on the long term. I will have to push some of them to the master branch, and keep other ones just for myself. I think that i could fork the master branch to have my own version(?).
I am a bit confused about what procedure i should follow. Should I create my own branch? or fork ?
If I'm right, forking will create another version located in myy BitBucket account that I should copy on my computer (in a different directory from the master branch project?) in order to do modifications.
On the other hand, it seems to me that a great feature of GIT is to work locally in a single directory with all different existing branches, switching from one to another, and pushing your modifications on your remote repo when you're done (and potentially to the master branch).
Before deciding, I have a few questions for you guys:
Question 1: If I modify files in my forked version, will I be able to push them to the master branch? how?
Question 2: How do I incorporate new commits (on the master branch) from other users into my forked version?
Question 4: Has the remote repo of my forked version anything to do with the master repo?
Question 5: Will my forked version contents be visible by others members of the team?
I'd appreciate A LOT if anyone could clarify this for me!
Thank you.