Skip to content

mcum96/INP_Git_Intro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

172 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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://git@github.com/[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_Git_Intro.git

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

  1. Get into the folder:
cd INP_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. 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 collage from the previous year!

collage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 67.2%
  • Python 32.8%