In simple terms, the difference between the two Git commands is that git pull is composed by a git fetch followed by a git merge. When you use git pull, Git will automatically merge any pulled commits into the branch you are currently working in, without letting you review them…
Recently, a branch was deleted from the server without it being merged. Luckily for us, we had a local copy. We used used the command git reflog to get access to the reference logs of the branch. The command returned results similar to the below: 271f0084 HEAD@{0}: pull: Merge made…
Recently, we've been working on a certain branch, we did some changes and performed a couple of commits that were not pushed on the remote system. There was a complication and it was decided that the local changes should not be pushed to the branch that we were working on.…