Skip to content
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

ENH: add info on how to add upstream with git #21

Open
nathanshammah opened this issue Mar 16, 2020 · 2 comments
Open

ENH: add info on how to add upstream with git #21

nathanshammah opened this issue Mar 16, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@nathanshammah
Copy link
Owner

Memo of the protocol to add:

  • fork the repo
  • clone your fork locally
  • add an upstream to your local branch:
git remote add upstream https://github.com/main-org/repo
@nathanshammah nathanshammah added the enhancement New feature or request label Mar 16, 2020
@nathanshammah
Copy link
Owner Author

Actually use

git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git

see this link for information.

@nathanshammah
Copy link
Owner Author

Also add the information, about unsync-ed remote branches (origin behind/above upstream):

git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force

from gui-cs/Terminal.Gui#498 (comment)

@nathanshammah nathanshammah changed the title ENH: add info on how to add upstream ENH: add info on how to add upstream with git Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant