Giter Site home page Giter Site logo

i_git_it's Introduction

What the git?

This is intended to be a quick and short introduction to git. This assumes some knowledge of the Linux/Unix command line. The lessons aim to amuse. So if you are not laughing, or at least chuckling, there may be something wrong with you.

What is git?

git is a command line program and is "free and open source distributed version control system." If any part of this is confusing, I highly recommend going directly to the documentation of git.

What is github?

Github is one of many websites that act as a "remote" for your repositories.

Why use git?

The answer to this question is probably just as important as understanding what it is. People use git to track the changes made to a file. Usually containing source code. It allows multiple people to work on the same file. And they can be anywhere.

A visualization of "stages" in a git workflow.

What happens when, where and why it’s important. It is intended as an overview rather than a cheat sheet.

============================================================================
----WORKING FILES----        ----STAGING----          ----REPOSITORY----

   NEW FILE
[ create file    ->          git add file             -> git commit -m ]


   UNTRACKED GIT FILE
    untracked    -> tracked(staged (to be committed)) -> committed


   TRACKED GIT FILE
[  unstaged file ->           staged                  -> git commit -m ]

============================================================================

Committed files are tracked files. A file can not be committed unless it is tracked.

When a committed file is changed it is “modified” and in an ‘unstaged’ state.

If you don't find this simple diagram useful, perhaps "The lifecycle of the status of your files" image will be more useful.

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.