Resets the local master
branch to match the one on the remote.
git fetch origin
to retrieve the latest updates from the remote.git checkout master
to switch to the master
branch.git reset --hard origin/master
to reset the local master
branch to match the one on the remote.git fetch origin
git checkout master
git reset --hard origin/master
git fetch origin
git checkout master
git reset --hard origin/master
# Local `master` branch is now up to date with remote `master`
Git, Repository
Pushes the current branch's changes to the remote.
Git, Repository
Clones an existing repository, creating a local copy of it.
Git, Repository
Prints a list of all local branches sorted by date.