Gitea: How to update the forked repo from original repo

Created on 30 Dec 2017  路  5Comments  路  Source: go-gitea/gitea

  • 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

kinquestion stale

Most helpful comment

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

All 5 comments

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

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

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adpande picture adpande  路  3Comments

thehowl picture thehowl  路  3Comments

jonasfranz picture jonasfranz  路  3Comments

ghost picture ghost  路  3Comments

mirhec picture mirhec  路  3Comments