Code Monkey home page Code Monkey logo

git-task's Introduction

git-task

To introduce folks to git version control system and github

For any issues/doubts: Join Slack Chat

Introduction

Go through this to understand more: Introduction.

We'll be uploading with a proper introduction shortly.

Instructions

These are for folks using Linux, Mac OSX. Windows people have to download git bash separately.

##Basic Procedures

  • Make a new repository in your account

    • There will be an option Initialize with README. Check that option.
  • There are two methods to have a local repository in your machine

    1. First method
    • git clone <url> where <url> is the url of the repository you initialized. Eg. <url> for this repository is https://github.com/OSDLabs/git-task.
    • With this, a clone of the repo on github will be created
    1. Second method
    • Create a folder(repository) in your machine: mkdir <reponame>
    • Navigate into the directory: cd <reponame>
    • Initialize it as a git repository: git init
    • Link it with the online repository: git remote add origin <url> where <url> is the url of the repository you initialized.
    • Add some random files in the repository.
    • Add the files for staging for the next commit: git add ..
    • Commit(Save) the files: git commit -m <message> where <message> is in double quotes and can be anything to describe your commit.
    • Push it to your online repository: git push origin master
      • You'll end up with an error message saying that your local repository is not up-to-date with your online(remote) repository. This happens, because you have a README.md in the online repo which is not present in your local repository.git pull origin master will pull all the contents from the online(remote) repo to your local repo. Now proceed with: git push origin master

##Making Contributions ###Basic

  • Make a fork of this repository
  • Clone your fork to your device (git clone <url> where <url> is the url of the forked repository that is in your account and not https://github.com/OSDLabs/git-task)
  • Create a new branch named contrib (git checkout -b contrib)
  • Create a new file named yourname.txt in intro directory with your name and BITS ID as the content (refer to sebastinsanty.txt for an example)
  • Commit (git add . & git commit -m <message>) the changes and push it to your fork git push origin contrib (read it as push the contrib branch to the remote named origin)
  • Browse to your repository on Github and submit a pull request

git-task's People

Contributors

sebastinsanty avatar nkg18 avatar kukreja-vikramaditya avatar yashsharan avatar

Watchers

James Cloos 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.