Remote Tracking Branches:
- They follow this pattern <remote>/<branch>.
- origin/master references the state of the master branch on the remote repo named origin.
- Run git branch -r to view the remote branches our local repository know about.


When you clone your repo:
- When you clone into your local machine even though the remote repo has many branches you could only see the Main branch.
- You could see the remaining repo using git branch -r
- Yoou could switch to anyone of the other branch using git switch <branch name>.
Git Fetch:



- Git Fetch will ftech the remote changes from Github repo and bring it to our local repo.(not into working directory)
- Use command git fetch <remote>
- Gets changes from remote branches Updates the remote tracking branches with the new changes.
- Does not merge changes onto your
current HEAD branch
- Safe to do at anytime
Git Pull:
- Pull is another command that we use to retrieve changes form a remote repo. Unlike fetch, pull actually updates out Head branch with whatever changes are retrieved from the remote.
- Pull = Fetch + Merge
- git pull <remote> <branch>