This is a really quick demo to show how to check for and then pull down changes from a remote repository. To follow along:
- Clone this repository (yes, this repository):
git clone https://github.com/INFO-498F/lecture-13-git-review-demo.git
- Confirm the location of your remote
# Verbose check of the remote
git remote -v
- Mike made some changes
- Check to see if there have been any changes:
git fetch
- Integrate the changes into your (unchanged) repository using the
git pull
command:
# Check status
git status
# Pull in changes
git pull origin master
- Confirm that you can see the changes in your (local) log
git log --oneline