What Is GIT Origin Master?
Table Of Contents:
- What Is GIT Origin ?
- What Is GIT Master ?
- How To Use GIT Origin Master?
(1) What Is GIT Origin ?
- The term ‘origin’ refers to the remote location repository.
- You will have your local repository in your working system and a remote repository in the server.
- To avoid confusion on which repository you are sending commands ‘origin’ helps us to resolve that.
(2) What Is GIT Master ?
- ‘Master’ refers to the default branch of your repository.
- When you create a repository the ‘master’ branch will come with it.
- In most cases, the ‘master’ is referred to as the main branch.
- Your local repository has its master branch that is always up to date with the master of a remote repository.
(3) Examples Of GIT Origin Master ?
Syntax:
git push origin <Branch Name>
git pull origin <Branch Name>
Example-1
git push origin master
Example-2
git pull origin master
Example-3
git push origin Subrat/Branch1
Example-4
git pull origin Subrat/Branch1