(Git) Fetching & building a branch from fork
- Fetch ONLY a specific branch from a fork repo:
git remote add <FORK_NICKNAME> <PATH/TO/FORK> git fetch <FORK_NICKNAME> <BRANCH_TO_FETCH> - Undo all fetches from the fork:
git remote remove <FORK_NICKNAME> - Disable accidental push to the fork by setting push URL of the fork remote to a dummy value:
git remote set-url --push <FORK_NICKNAME> no_push"no_push"has no meaning here; just some non-URL
References:
Written on May 10, 2021
