Skip to content

How to update the forked repo from original repo #3271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 4 tasks
ethan42411 opened this issue Dec 30, 2017 · 5 comments
Closed
1 of 4 tasks

How to update the forked repo from original repo #3271

ethan42411 opened this issue Dec 30, 2017 · 5 comments
Labels
issue/stale type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@ethan42411
Copy link

ethan42411 commented 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

@thehowl
Copy link
Contributor

thehowl commented 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

@muhfaris
Copy link
Contributor

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

@lunny lunny added the type/question Issue needs no code to be fixed, only a description on how to fix it yourself. label Dec 31, 2017
@ethan42411
Copy link
Author

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

@lafriks
Copy link
Member

lafriks commented Dec 31, 2017

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

@stale
Copy link

stale bot commented 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 stale bot added the issue/stale label Feb 9, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/stale type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

No branches or pull requests

6 participants