Git

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Revision as of 22:09, 18 August 2014 by Woozle (talk | contribs) (→‎Online Books: Chapter 2)
Jump to navigation Jump to search

About

Git is a version control system based on a powerful distributed model.

This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!

Commands

  • git config --global <param_name> <param_value>
    • param_name: user.name, user.email, core.editor
  • git config --list
    • lists current configuration parameters
  • git config <param_name>
    • lists the current value for the given parameter
  • git add
    • updates the index using the current content found in the working tree, to prepare the content staged for the next commit
  • git reset
    • resets current HEAD to the specified state
  • git fetch
    • fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them.
  • git push
    • updates remote refs using local refs, while sending objects necessary to complete the given refs
  • git pull
    • Incorporates changes from a remote repository into the current branch. In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD.
  • git stash
    • saves your local modifications away and reverts the working directory to match the HEAD commit

Software

Services

  • GitHub: free web-based git repository for open-source projects

Links

Reference

Online Books

Online Courses

Discussion