Skip to content

Instantly share code, notes, and snippets.

@AnmolTomer
AnmolTomer / sync_fork_with_parent.md
Last active May 17, 2022 13:39
GIT : Syncing a Fork with Parent

Syncing a Fork with Parent

Configuring a remote for a fork

You must configure a remote that points to the upstream repository in Git to sync changes you make in a fork with the original repository. This also allows you to sync changes made in the original repository with the fork.

  1. List the current configured remote repository for your fork.

    $ git remote -v
    > origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)