git - Creating branch off of remote master -
I have a problem understanding the logic behind the following commands in the guit:
git checkout - If I type it, a local branch named is created, which is original Master branch of my remote repository of names when I push it later into my remote repository, the graph looks like this:
Say that a collaborator changes and push them into the Remote Master branch and after some time I will be another Remote master named hotfix_example_2 decides to close the branch when I push the new hotfix_example_2 branch to the remote repository , I think the new branch I created was the remote master (which pushed my colleague first ) But instead it has stopped its earlier commitment. If I do git drag the original master
at my local master branch and repeat the process, then I can see that my associate's hotfix_example_2 Committed Why do not I get it, so why do I have to take a git to get the graph, although I am using the original / master in my checkout -B command I am very sorry if it does not matter much English is not my native language.
What you understand is understood, but I can say how it is git!
To update your 'remote' branch on the server, you need to talk to the server at least once. (The bridge bridge does this).
Unless you used to do a GIT, you did not know the branch that your friend had by dragging your local repo. When you do GIT-bridge, your local master (original / master) has also been updated.
Hope this makes sense!
Comments
Post a Comment