Code Monkey home page Code Monkey logo

Comments (5)

finity69x2 avatar finity69x2 commented on May 29, 2024

I'm not sure what you mean but you can open a PR if you want.

you just can't commit the changes yourself.

what is the issue you are having?

from nws_alerts.

mdecourcy avatar mdecourcy commented on May 29, 2024

image

Might just be an issue with my locally saved creds on this machine, I'll check after I wrap up at work

from nws_alerts.

jarrodsfarrell avatar jarrodsfarrell commented on May 29, 2024

@mdecourcy You're trying to push directly to someone else's repo you do not have access to. You have to fork, clone your fork, branch, commit, push, then PR.

The flow I use to committing and PRing to someone else's project is the following:

  • Through GitHub web, you fork the repo. This makes a personal copy for yourself.
  • You clone your fork.
  • Create a new branch from main/master or some other branch of interest.
  • Make your commits
  • Push
  • Visit your repo and you should get a yellow banner indicating you can PR your changes.

This is my flow, but I know there's quicker ways via GitHub's CLI and different ways to begin a PR. Explore around.

You will occasionally have to update your fork and there's a way to do it on the web, but typically I set up another remote on my local repo—like upstream—, switch to your fork's main, git fetch upstream, git merge upstream/main or something of that effect then git push. Ideally it should fast-forward, but if it does something else or fails then the owner did a force push that broke the history or you have local commits that are conflicting.

from nws_alerts.

mdecourcy avatar mdecourcy commented on May 29, 2024

Ah I see, my mistake! First attempt at open source contributions. I'm used to just feature branching and PRing at work. I'll fork and make a PR now.

from nws_alerts.

jarrodsfarrell avatar jarrodsfarrell commented on May 29, 2024

@mdecourcy No problem, and that would be a valid way to do a PR as well on repos you have access to as well.

from nws_alerts.

Related Issues (20)

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.