Git: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
more stuff, as I continue to read the online book
more commands; git-cola
Line 8: Line 8:
[[Git]] is a [[version control system]] based on a powerful distributed model.{{seed}}
[[Git]] is a [[version control system]] based on a powerful distributed model.{{seed}}
===Commands===
===Commands===
* git config --global {{arg|param_name}} {{arg|param_value}}
* '''git config --global {{arg|param_name}} {{arg|param_value}}'''
** '''param_name''': user.name, user.email, core.editor
** '''param_name''': user.name, user.email, core.editor
* git config --list
* '''git config --list'''
** ''lists current configuration parameters''
** ''lists current configuration parameters''
* git config {{arg|param_name}}
* '''git config {{arg|param_name}}'''
** ''lists the current value for the given parameter
** ''lists the current value for the given parameter
* '''[https://www.kernel.org/pub/software/scm/git/docs/git-add.html git add]'''
** ''updates the index using the current content found in the working tree, to prepare the content staged for the next commit''
* '''[http://www.kernel.org/pub/software/scm/git/docs/git-reset.html git reset]'''
** ''resets current HEAD to the specified state''
* '''[http://kernel.org/pub/software/scm/git/docs/git-fetch.html git fetch]'''
** ''fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them.''
* '''[http://kernel.org/pub/software/scm/git/docs/git-push.html git push]'''
** ''updates remote refs using local refs, while sending objects necessary to complete the given refs''
* '''[https://www.kernel.org/pub/software/scm/git/docs/git-pull.html 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.''
* '''[http://kernel.org/pub/software/scm/git/docs/git-stash.html git stash]'''
** ''saves your local modifications away and reverts the working directory to match the HEAD commit''
===Software===
* [[git-cola]]: git GUI client
===Services===
* [[GitHub]]: free web-based git repository for open-source projects
==Links==
==Links==
===Reference===
===Reference===
* {{wikipedia|Git (software)}}
* {{wikipedia|Git (software)}}
* {{l/manpage|git|manpage}}
* {{l/manpage|git|manpage}}
===Projects===
* [[GitHub]]: free web-based git repository for open-source projects
===Online Books===
===Online Books===
* ''[http://git-scm.com/book Pro Git]''
* ''[http://git-scm.com/book Pro Git]''

Revision as of 22:03, 18 August 2014

<hide> page type::article thing type::version control system thing type::software license::open source </hide>

About

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

 page status::seed

</hide>

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

Reference

Online Books

Online Courses

Discussion