Coder Social home page Coder Social logo

inp_2021_git_intro's Introduction

How do I use GitHub?

Recordit GIF

Things you need to do to get started:

  • Create an account in github: link
  • Install github (please follow the instructions for your OS): link
  • Create a personal token here

Getting & Creating Projects

Command Description
git init Initialize a local Git repository
git clone ssh://[email protected]/[username]/[repository-name].git Create a local copy of a remote repository

Basic commands

Command Description
git status Check status
git add [file-name.txt] Add a file to the staging area
git add -A Add all new and changed files to the staging area
git commit -m "[commit message]" Commit changes
git rm -r [file-name.txt] Remove a file (or folder)

For a more complete cheat sheet, check the link

Let's try it out!

  1. Fork this repository (check here for more details) link)

fork-a-repo

  1. Clone your repo:
git clone https://github.com/YOUR-USERNAME/INP_2021_Git_Intro.git

You can obtain the correct url for your fork like shown below clone

  1. Get into the folder:
cd INP_2021_Git_Intro
  1. Add a photo of you to photos with the filename as Firstname_Lastname.jpeg (please, use jpeg.)

  2. Check your modifications

git status
  1. Add your modifications
git add -A
  1. Commit your changes
git commit -m "[commit message]"
  1. Push your changes
git push
  1. [BONUS] Create a pull request back to Antonio's repository. We will make a collage with the photos of the people who completed this tutorial! :)

pull_req

  1. Here is the current collage!

collage

inp_2021_git_intro's People

Contributors

ahof1704 avatar claybarn avatar chrisclaycamp avatar katieaf 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.