

master and as I created the repository with a “README” so it also contains this file. I have created a new repo with the name of tst-pull-2 for our demo.īy default, it contains one branch i.e. This is simple and straight forward – go to Github website, create an account (if you have not already) and you will lead to creating a new repository.

In this section, I will show you a step by step for creating an online repository (on Github), adding files and then by using the pull command on Git Bash, we will fetch and download the branch in our local repository – so keep reading. If you are a beginner then this guide is particularly for you.

The screenshot below shows current set URLs on Github on my Git Bash:Ī step by step guide for creating and pulling a remote branch If you have not set remote repo or unsure, use this command to check what the current repo is set in Git Bash by this command: The command should fetch content from the set remote repository into the local repo. Before explaining what is Git pull command and how it works, let me show you a simple command that pulls a remote branch from the Github repository to the local repo.
