Git: git pull (Get Update)

By Xah Lee. Date: . Last updated: .

How to get update from a remote repository?

git pull URL
update local repo from a remote repo at URL


# cd to my git project dir
cd ~/git/xah-fly-keys

# pull from a remote repository
git pull

How to force a pull?

# discard local changes
git reset --hard

# delete all untracked local files and dirs. (DANGEROUS)
git clean -xdf

git pull remote_server_or_name


git FAQ