Home Forcing a Pull in the Local Repository
Post
Cancel

Forcing a Pull in the Local Repository

Forcing a Pull in the Local Repository

Overwriting the code in the local repository with whatever code is in the GitHub repository.

1
2
3
git fetch --all
git reset --hard origin/main
git pull origin main
This post is licensed under CC BY 4.0 by the author.

Reverting a Commit in GitHub

Error [ERR_HTTP_HEADERS_SENT]