Horje
How do I reset the git master branch to the upstream branch in a forked repository? Code Example
How do I reset the git master branch to the upstream branch in a forked repository?
You can reset your local master branch to the upstream version and push it to your origin repository.

Assuming that "upstream" is the original repository and "origin" is your fork:

# ensures current branch is master
git checkout master

# pulls all new commits made to upstream/master
git pull upstream master

# this will delete all your local changes to master
git reset --hard upstream/master

# take care, this will delete all your changes on your forked master
git push origin master --force
(You can define the original repo as "upstream" with git remote add upstream /url/to/original/repo.)




Shell

Related
installing plesk on linux Code Example installing plesk on linux Code Example
linux install software without sudo Code Example linux install software without sudo Code Example
vant github Code Example vant github Code Example
installing flow globally Code Example installing flow globally Code Example
install tmux2 Code Example install tmux2 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10