Git

What Is ‘origin’ in Git

In Git, origin is convenient shorthand alias for the URL of the remote repository. Notice that there’s nothing special about the name “origin“. You could change the origin to anything else that makes sense. You have probably seen a command like git push origin main. This means pushing the changes to the remote repository. This …

What Is ‘origin’ in Git Read More »

‘git pull’ vs ‘git fetch’ — What’s the Difference (with Examples)

When doing version control in Git, you will frequently use the commands git pull and git fetch. Understanding the difference between these two commands is important and useful for the future. In short, git pull is just a combination of git fetch + git merge. This is a comprehensive guide to understanding the differences between …

‘git pull’ vs ‘git fetch’ — What’s the Difference (with Examples) Read More »