Git Product home page Git Product logo

Comments (8)

KevinBongart avatar KevinBongart commented on June 16, 2024 1

You can make a branch that includes only commits in this repo, call it upstream for instance. Here's how to configure my repo as the upstream remote: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/configuring-a-remote-for-a-fork

Then create a new branch off upstream, let's call it the moderator_feature branch, and cherry-pick the commits you want to submit.

This way, your master branch includes all your various changes, the upstream branch is tracking my master branch, and the moderator branch is upstream plus the moderator-related commits you want to submit here.

In my local repo:

  • master: my code, including the most recent commits (kevin_commit_1, kevin_commit_2, …)

In your local repo:

  • master: my code, plus all your changes (kevin_commit_1, kevin_commit_2, …, haviduck_commit_1, haviduck_commit_2, etc.)
  • upstream: a branch in your repo that mirrors my master branch (kevin_commit_1, kevin_commit_2, …)
  • moderator_feature: a branch that only differs from upstream by the commits related to the moderator feature (kevin_commit_1, kevin_commit_2, …, haviduck_commit_2)

And your pull request would then be requesting that the branch haviduck/moderator_feature be merged into kevin/master, ultimately resulting in kevin_commit_1, kevin_commit_2, …, haviduck_commit_2 being part of this repo and available to everyone else.

Git has an unnecessary complex interface but that's the standard most people use, so please don't hesitate to let me know if you need more pointers.

from cards_against_humanity.

haviduck avatar haviduck commented on June 16, 2024

For those interested:
haviduck@9ac002f

from cards_against_humanity.

KevinBongart avatar KevinBongart commented on June 16, 2024

@haviduck Thanks for the suggestion. Take a look at the official GitHub help for creating pull requests: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/proposing-changes-to-your-work-with-pull-requests

In your case, the changes are in the commit you listed above, so you'll first need to create a branch that isolates this commit compared to the master branch of my repo, and then open a PR for your new branch to the master branch of my repo.

The pull request will thus says "@haviduck would like to contribute these changes to KevinBongart/cards_against_humanity"

from cards_against_humanity.

haviduck avatar haviduck commented on June 16, 2024

@haviduck Thanks for the suggestion. Take a look at the official GitHub help for creating pull requests: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/proposing-changes-to-your-work-with-pull-requests

In your case, the changes are in the commit you listed above, so you'll first need to create a branch that isolates this commit compared to the master branch of my repo, and then open a PR for your new branch to the master branch of my repo.

The pull request will thus says "@haviduck would like to contribute these changes to KevinBongart/cards_against_humanity"

thanks, will try - and please bare with me if i eff up at first :)

from cards_against_humanity.

KevinBongart avatar KevinBongart commented on June 16, 2024

Yes of course! I'll be happy to help you, and a PR will be the ideal place to discuss the code changes and iterate

from cards_against_humanity.

haviduck avatar haviduck commented on June 16, 2024

i get the jist of it, its just that when i make a branch -everything- follows. and if i get this correctly i am to only submit the files in question. so just gonna figure that bit out then ill add each feature ive added as a pull request.

from cards_against_humanity.

haviduck avatar haviduck commented on June 16, 2024

Yeah i appreciate that guidance immensely. Ive postponed learning this stuff so i guess now is the time. Gonna try more tomorrow and hope fully a pr Will appear! :)

from cards_against_humanity.

haviduck avatar haviduck commented on June 16, 2024

allright, ive tried. i started out wrong so ive had to do some hackish stuff to only have the files in question. please review and advise :)

from cards_against_humanity.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.