You are here: Home » NewsFeeds » Mind blowing Git tips for beginners

Mind blowing Git tips for beginners

As developers, we all (hopefully) use git. It’s not extremely hard nor time
consuming to get started with it and you will surely thank your future self for taking the time to learn it. Ok so that was for the cringy intro.

Now let’s get down to business: what I really want to share in this post is a list of tricks I’ve learned during the past 2 1/2 years of using git. Some of it might seem trivial to seasoned developers but if you’re just getting started, stick with me because this might just blow your mind.

The difference between git fetch and pull

git fetch only updates the tracking remote branches. If you actually want to
update the local repo, you need to merge the local branch with the remote
tracking branch using git merge.

remote branches are prefixed with the name of the remote and a slash:

git pull on the other hand, will execute


Original article