Giter VIP home page Giter VIP logo

fp_study_notes_hello_github's Introduction

Study Notes

git CLI cheatsheet

Exercises

Fork & Clone

  • Hit 'Fork' on this repo
  • On your Fork (it will say <your-github-username>/fp_study_notes_hello_github), click the green 'Code' button and copy the SSH option
  • Clone down your fork using git clone <what you copied> in your terminal

Make a Change

  • Move into the project folder with cd fp_study_notes_hello_github
  • Open it up in VS Code using code .
  • Make a change! Add your name to <your-cohort>/roster.txt and save the file (Windows/Linux: ctrl+s / MacOS: command+s)
  • Check the git status of the project with git status - <your-cohort>/roster.txt should show in red as there are unstaged changes

Stage your Change

  • Stage your change with git add . (or git add <your-cohort>/roster.txt)
  • Check the status again - <your-cohort>/roster.txt should now show in green as the changes have been staged but not yet committed

Commit your Change

  • Commit your change with git commit -m "add <your-name>". The -m is a flag for 'message' and you must leave a message with every commit!
  • Check the status again - there should be nothing to commit now but an indicator that your local version is one commit ahead of the origin. As it suggests, use git push to push up your work to GitHub!

Make your first PR

  • You made your own fork of this, now use the GitHub browser interface to see if you can make a Pull Request back to getfutureproof/fp_study_notes_hello-github. Try and request review from @getfutureproof-admin. We will merge your PR when we receive it!

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.