Coder Social home page Coder Social logo

first-contributions's Introduction

First Contributions

If you don't have git on your machine, install it

Fork this repo by clicking on the fork button

Now clone this repo to your machine. Click on clone button and then copy to clipboard icon

Open a terminal and run

git clone <url you just copied>

Where the url can be pasted from clipboard For example

git clone https://github.com/this-is-you/first-contributions.git

Here you're copying the contents of first-contributions repository in github to your computer

Go in to that directory

cd first-contributions

Now create a branch using git checkout command

git checkout -b <add-your-name>

For example

git checkout -b add-alonzo-church

Now open Contributors.md file in a text editor and add your name to it, save the file

If you go to the project directory and do git status, you'll see there are changes

Add those change using git add

git add Contributors.md

Now commit those changes using git commit

git commit -m "Add <your-name> to Contributors list"

replace <your-name> with your name

Push your changes using git push

git push origin <add-your-name>

Replace <add-your-name> with the name of the branch you created earlier

If you go to your repo on github, you'll see a button to open a pull request. click on that button

Now submit the pull request

Keeping your fork synced with this repo

Now I'll be merging all your changes in to master branch of this project. Then your fork won't have those changes. In order to keep your fork synced with mine,

Add my repo's url as upstream remote url

git remote add upstream https://github.com/Roshanjossey/first-contributions

This is a way of telling git that another version of this project exists in the specified url and we're calling it master.

git fetch upstream

Here we're fetching all the changes is my fork (upstream remote)

git rebase upstream/master

Here you're applying all the changes you fetched to master branch. If you push master branch now, your fork will also have the changes

git push origin master

Notice here you're pushing to the remote named origin

first-contributions's People

Contributors

angadgill92 avatar heman-r avatar kmlmhnn avatar lakshmishruthi avatar tapanprakasht avatar zayelion 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.