Whats the difference between pulling from a branch into master and pushing that branch onto master?

Posted by Justin808 on Super User See other posts from Super User or by Justin808
Published on 2012-09-05T20:08:23Z Indexed on 2012/09/05 21:40 UTC
Read the original article Hit count: 198

Filed under:
|

In Tortoisegit, on the repository, I right-click and select sync. At the top of the dialog there are options for Local Branch and Remote Branch. If the local branch is named DeveloperA and the remote branch is master and I do a push, what happens? If the local branch is master and remote branch is DeveloperA and I Pull, what happens?

If I am on the master branch and right click, select Merge and change the From to be my DeveloperA branch, what happens?

If I try to push from master to remote master and the remote is updated git stops and tells me to pull. It seems if I push from DeveloperA to master it doens't stop, it just clobbers, it that correct?

We're having an issue using git where the remote master branch gets clobbered at times and we are trying to figure out why. For example there is a developer working on his DeveloperA branch. He'll pull from master to get any updates, then push to master to push out his changes. But there are times that the push lists more files in the Out Commit list than he's edited. The odd thing is he can't revert those files as git is saying they are up to date and have not been modified. Yet when he pushes git pushes the files out. The problem is if there are changes between his pull and push the changes get clobbered.

© Super User or respective owner

Related posts about git

Related posts about tortoise-git