Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 2.56 KB

README.md

File metadata and controls

70 lines (43 loc) · 2.56 KB

idg1100-2019-groups

Public repo for maintaining the groups for the final project.

This repo will be used to practice how to fork a project and eventually create a pull request.

Forks are used to either propose changes to someone else's project or to use someone else's project as a starting point for your own idea.

Fork this project

  1. On GitHub, navigate to the idg1100-2019-groups](https://github.com/carlosvicient/idg1100-2019-groups) repository.

  2. In the top-right corner of the page, click Fork.

fork image

Create a local fork of your fork

  1. Open the forked repository in your GitHub and copy the url for cloning the project

clone image

Config the local repo

You will need to config the directories that contain the location of the fork you cloned.

  1. Type git remote -v (you should see 2 lines with the fetch and pushrepositories pointing to your forked repo

  2. Type git remote add upstream, and then paste the same URL you copied when cloning the project. It will look like this:

    $ git remote add upstream https://github.com/carlosvicient/idg1100-2019-groups.git

  3. To verify the new upstream is correct, type again `git remote -v. You should see now 4 different urls (2 poinint to your forked repo and 2 poinint to the origianl repo)

Edit the project

In your local repo, open your text editor and edit the file index.html

<h2>Group#1</h2>
<ul>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</ul>
<p>
    The group leader of this group is:
    <span></span>
</p>
  1. Find your group number

  2. Find the list item that will contain your name (sorted alphabetically by last name. You have to only add your name in the list)

  3. Save the changes git commit

  4. Push the changes git push

Creating a Pull Request

Your forked project is now updated in both your local repository and your remote repository (gitHub). The last step is to create a pull request.

A pull request is in the core of the open source community. It is a feature that makes it easier for developers to collaborate with other developers.

The pull request is sent to the original author of the repository you forked. With the pull request, you send your code and your changes to the original author asking him/she to include your changes and implementation to the original source.

So, the last step consists in sending a pull request. You can read how to create a pull request to learn how to do it.