You can do the following
Switch to the branch, e.g it’s the Master branch
git checkout master
Then, use Git Fetch to update the local copy of a remote branch
Git fetch is similar to pull, except it won’t do any merging
What is GIT?
Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and easy to do.
A single git repository can maintain multiple branches of development.
Get a list of all existing branches
Create a new branch (named test)
git branch test
Switch from default “master” to the test branch
git checkout test
Force to switch branch from “master” to the test branch
git checkout -f test
Merge test branch with “master” because two branches have diverged, different changes made in each
git merge test
If there are conflicts with the changes, show markers
Push the “test” branch to remote repo
git push origin test
Pull the remote “test” branch to local repo
git pull origin test
Delete remote “test” branch
git push origin :test
Delete local “test” branch
git branch -d test
>> Use it when changes in the test branch are already in “master” branch
git branch -D test
>> force delete test branch
Run the following to see what version running on your system
rpm -q centos-release
Using your redhat-release file, you can find your distribution, version and update number. This information is very helpful for technical support staff as well as knowing if you are up to date with the latest patches