Coder Social home page Coder Social logo

neighbor-cook's Introduction

Contributing via Pull Request (PR)

Credit: benrudolph (Ben Rudolph)

The first thing you'll want to do is fork the neighbor-cook/neighbor-cook repo so that you have your own version of the repo. Here are instructions

Once you have forked a repo, you'll always create new branches on your origin repo, push that repo and then send a PR to neighbor-cook/neighbor-cook.

Here is an example workflow:

git checkout -b hotfix

This will create a new local branch from whatever branch you are on (usually master). You can check what branch you are on using git branch

Make some commits and fixes on branch hotfix. Then when you can push to origin which is your remote fork. In my case it would rpandey1234/neighbor-cook. Here's how to do it:

git push origin hotfix

This command pushes branch hotfix to remote repo origin.

Once you've pushed your branch up, log on to github and there will be a button to send a PR to neighbor-cook/neighbor-cook. You can continue pushing commits to hotfix with git push origin hotfix and the PR will be updated. Once the PR is merged with neighbor-cook/neighbor-cook, you'll no longer be able to do so, so you'll need to work on a new branch.

How to update a branch with the newest code from upstream/master

Usually you'll want to update your local master branch or the branch you're working on with upstream/master every so often so as to get the recent changes. To do so execute these commands:

git fetch --all
git merge upstream/master

The first command gets all the branches on upstream and origin. The second command merges `upstream/master with your local branch.

Here's a graphic detailing what this all looks like:

workflow

neighbor-cook's People

Contributors

rpandey1234 avatar smnguyen avatar

Watchers

James Cloos avatar  avatar

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.