How to update the forked repo from original repo #1410

Closed
opened 2025-11-02 03:59:58 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @ethan42411 on GitHub (Dec 30, 2017).

  • Gitea version (or commit ref): 2f8c65c
  • Git version: 2.11.0
  • Operating system: raspberry pi(dietpi)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite

Description

Hi everyone,
I am a gitea's new user, I installed gitea on my raspberry pi which runs dietpi.
I have no idea to update the forked repo from original repo on the gitea's web gui.
When I forked a repo and then modified, I can used "Pull requests" to merge changes to original repo, but if the original repo was modified, I can't use "Pull requests" like Github can press "switch the base" to change source and target.

Thanks

Originally created by @ethan42411 on GitHub (Dec 30, 2017). - Gitea version (or commit ref): 2f8c65c - Git version: 2.11.0 - Operating system: raspberry pi(dietpi) - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite ## Description Hi everyone, I am a gitea's new user, I installed gitea on my raspberry pi which runs dietpi. I have no idea to update the forked repo from original repo on the gitea's web gui. When I forked a repo and then modified, I can used "Pull requests" to merge changes to original repo, but if the original repo was modified, I can't use "Pull requests" like Github can press "switch the base" to change source and target. Thanks
GiteaMirror added the type/questionissue/stale labels 2025-11-02 03:59:58 -06:00
Author
Owner

@thehowl commented on GitHub (Dec 30, 2017):

Hey there, if you want to pull changes from the main repository you should probably do this from the command line instead of using pull requests:

git remote add upstream [main_fork_clone_url]
# every time you want to update
git pull upstream master
@thehowl commented on GitHub (Dec 30, 2017): Hey there, if you want to pull changes from the main repository you should probably do this from the command line instead of using pull requests: ```sh git remote add upstream [main_fork_clone_url] # every time you want to update git pull upstream master ```
Author
Owner

@muhfaris commented on GitHub (Dec 30, 2017):

i agree with @thehowl, my advise do git fetch before git pull

git remote add upstream [main_fork_clone_url]
git fetch upstream
git pull upstream master
@muhfaris commented on GitHub (Dec 30, 2017): i agree with @thehowl, my advise do `git fetch` before `git pull` ``` git remote add upstream [main_fork_clone_url] git fetch upstream git pull upstream master ```
Author
Owner

@ethan42411 commented on GitHub (Dec 31, 2017):

Thanks for your answer.
Is it possible add a option on web UI?

@ethan42411 commented on GitHub (Dec 31, 2017): Thanks for your answer. Is it possible add a option on web UI?
Author
Owner

@lafriks commented on GitHub (Dec 31, 2017):

I think this is duplicate of #2488 to update fork from web UI

@lafriks commented on GitHub (Dec 31, 2017): I think this is duplicate of #2488 to update fork from web UI
Author
Owner

@stale[bot] commented on GitHub (Feb 9, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 9, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1410