GithubHelp home page GithubHelp logo

add-remote's Introduction

Add Remote

This script helps you create a remote to a contributor's fork of the Angular repo, fetches the person's work, and checks out a new branch for you.

How to use this script:

  1. Download this repo. Important: Store this directory at the same level as the Angular directory, not within your Angular clone.
  2. Go to terminal into the add-remote directory.
  3. Type chmod +x add-remote.sh
  4. Go back into your Angular directory.
  5. To run the script, type ../add-remote/add-remote.sh

Add Remote prompts you for three things:

  1. The user's GitHub handle. For example, mine is kapunahelewong.
  2. The name of the person's branch as it appears on their fork. For example, in this URL: https://github.com/kapunahelewong/angular/tree/patch-1, my branch name is patch-1. You can see this in their PR under the PR title; for example, kapunahelewong:patch-1.
  3. What you plan on calling this branch on your computer. Since patch-1 is a common branch name, you might like to refer to it in a way that differentiates it from other patch-1 branches. While you could call it patch-1, You could also call it something different such as kw-patch-1 or kapunahele-patch-1.

Here's a screenshot of me answering these questions with these example answers: Image of Add Remote

Get your changes up to GitHub

When you're done editing, amending a commit, or rebasing use git push to update the PR. If you have used a unique name for the local version of the branch, git will give you an option of two commands. Use the first command which be like this in our case:

git push kapunahelewong HEAD:patch-1

Thanks to @gkalpak for teaching me how to checkout contributor branches! ๐ŸŒŸ

add-remote's People

Contributors

kapunahelewong avatar

Watchers

 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.