Difference between revisions of "Git"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(more commands; git-cola)
(→‎Online Books: Chapter 2)
Line 38: Line 38:
 
** [http://git-scm.com/book/en/Getting-Started-Git-Basics 1.3 Getting Started - Git Basics]
 
** [http://git-scm.com/book/en/Getting-Started-Git-Basics 1.3 Getting Started - Git Basics]
 
** [http://git-scm.com/book/en/Getting-Started-Getting-Help 1.6 Getting Started - Getting Help]
 
** [http://git-scm.com/book/en/Getting-Started-Getting-Help 1.6 Getting Started - Getting Help]
 +
** [http://git-scm.com/book/en/Git-Basics 2. Git Basics] - "If you can read only one chapter to get going with Git, this is it. This chapter covers every basic command you need to do the vast majority of the things you’ll eventually spend your time doing with Git."
 +
 
===Online Courses===
 
===Online Courses===
 
* [http://www.codeschool.com/courses/try-git Learn to use Git] @ [[Code School]] (free registration required)
 
* [http://www.codeschool.com/courses/try-git Learn to use Git] @ [[Code School]] (free registration required)
 
===Discussion===
 
===Discussion===
 
* [http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide beginner's practical guide to Git] @ [[Stack Overflow]]
 
* [http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide beginner's practical guide to Git] @ [[Stack Overflow]]

Revision as of 22:09, 18 August 2014

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