Giter Club home page Giter Club logo

thinkful-git-ws's Introduction

thinkful-git-ws

For Thinkful Detroit's Git & GitHub Workshop

Git is a version-control system that tracks changes made to files and allows for easier collaboration among multiple people hello world

Git

  • What is Git?
    • Git is the most popular site for remotely saving our code and collaborating with other developers on open source projects
  • Local & Remote Branches
    • Local - branch stored on your personal computer
    • Remote - branch stored in a separate repository, like GitHub, Bitbucket, GitLab, etc
  • Branching Strategies
  • Git Init
  • Command that initializes our file directory into a new Git repo
  • Status / Add & Commit
    • Status - shows us which files we have changed in our repo, and which files we are currently tracking
    • Add - add files to the staging area
      • Which files do we want to include in our next commit?
    • Commit - saving a snapshot of our recently changed files
      • Commit often and frequently
        • Usually want to commit whenever we’ve made an incremental change or improvement to one or more files
        • Infrequent commits can make it difficult to know where exactly our project broke / what needs to be corrected
  • Git Push
    • Rolling Back a Commit
  • Git Clone
    • Copying a project and downloading it to your local machine from a remote repo
  • Forking
    • Copying a project and creating your own branch, allowing you to hack away without fear of altering repo you forked from
  • Merging / Pull Requests
    • Merge - combining separate branches of your project, typically to add a new feature while ensuring you don’t break any existing functionality of your project
    • Pull Requests - typically a more formal process where you’re asking an assigned person to merge your code into their repo, while explaining the changes you made and why they should be merged
    • Merge Conflicts - errors that may arise when trying to merge branches - can sometimes be ignored, but should always be carefully looked at to avoid any breaking changes that may arise from merging the two branches

Summarize

Git is our coding time machine. Mistakes and errors in our code are inevitable. Git allows us to roll back to when our code was still working and avoid making the same mistake twice. Git is our coding safety net. It will also allow you in the future to collaborate with others.

Take Home Problem

thinkful-git-ws's People

Contributors

jgmil avatar bhargavmehta01 avatar

Stargazers

Roman avatar

Watchers

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