Git Product home page Git Product logo

cssi-1.7b-quick-guide-github's Introduction

#Quick Guide to GitHub

##When you need to Fork a Repository(Repo) and create a local version on your computer:

  1. Click the Fork this repo Link on Learn - this take you to the original Repo on Github
  2. Click the Fork button on the Github Repo - Add the Fork to your Github Profile
  3. Click the Copy to Clipboard button on the lower right side of your Forked Repo (the https address)
  4. Open the Terminal
  5. cd dev
  6. type git clone and paste the https address you Copied to Clipboard from your Forked Repo
  7. cd into the repo you just cloned and you are ready to start working!

##When you have done some work and want to make a commit and push up your changes to your Forked Repo on Github:

  1. In Terminal, make sure you are currently in the directory of the project that you want to push (pwd will tell you what directory you are currently in if you aren't sure)
  2. git add .
  3. git commit -m "your commit message goes here"
  4. git push -u origin master

You only need to include the -u in #4 if it is the first time you are pushing a commit to this specific repo.

Now your changes have been added to the Forked Repo in your Github account. At any time you can enter git status to see whether you have any changes that are not yet commited or whether your local repo is current with the master.

##If you want to create a pull request (to tell the original owner of the repo to check out your changes)

  1. Go to your Forked Repo in your profile on Github
  2. Click the little green button with the arrows on it.
  3. Click green Create pull request button
  4. Leave a message for the owner of the repo
  5. Click green Create pull request button at the bottom of the message.

##Whenever you come back to work on a repo that someone else might also be committing changes to

  1. Make sure you are currently in the right directory
  2. git pull

Git pull is important to make sure you have the most up to date version of the repo on your local computer. This is most important when multiple people are working on and committing changes to the same repo.

##We will continue to build on our Github knowledge over the next few weeks.

Resources

View Quick Guide to GitHub on Learn.co and start learning to code for free.

cssi-1.7b-quick-guide-github's People

Contributors

crepric avatar fislabstest avatar norahsolo avatar sarogers avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.