Difference between revisions of "Git"
Jump to navigation
Jump to search
(→Online Books: Chapter 2) |
(reorganized; subpages for many commands) |
||
| Line 7: | Line 7: | ||
==About== | ==About== | ||
[[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== | |
| − | + | {| | |
| − | + | |- | |
| − | + | ! alphabetical !! by function | |
| − | + | |- | |
| − | + | | valign=top | | |
| − | + | * '''[[/add|git add]]''' updates the index using content found in the working tree (can be specified), to prepare the content staged for the next commit | |
| − | * '''[ | + | * '''[[/clone|git clone]]''' copies a repository from somewhere else |
| − | + | * '''[[/commit|git commit]]''' commits changes currently staged | |
| − | * '''[ | + | * '''[[/config|git config]]''' |
| − | * | + | * '''[[/diff|git diff]]''' shows difference between current directory contents and what you have staged |
| − | * '''[ | + | * '''[[/fetch|git fetch]]''' fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them. |
| − | + | * '''[[/init|git init]]''' initializes a new repository; does not add anything | |
| − | * '''[ | + | * '''[[/merge|git merge]]''' |
| − | * | + | * '''[[/pull|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. |
| − | * '''[ | + | * '''[[/push|git push]]''' updates remote refs using local refs, while sending objects necessary to complete the given refs |
| − | + | * '''[[/reset|git reset]]''' resets current HEAD to the specified state | |
| − | * '''[ | + | * '''[[/rm|git rm]]''' removes files from staging '''and also from the directory''' |
| − | * | + | * '''[[/stash|git stash]]''' saves local modifications, reverts the working directory to match HEAD commit |
| + | * '''[[/status|git status]]''' shows status of current repository | ||
| + | | valign=top | | ||
| + | ===initialization=== | ||
| + | * '''[[/config|git config]] --global {{arg|param_name}} {{arg|param_value}}''' | ||
| + | ===creating from scratch=== | ||
| + | * '''[[/init|git init]]''' initializes a new repository; does not add anything | ||
| + | * '''[[/add|git add]]''' updates the index using content found in the working tree (can be specified), to prepare the content staged for the next commit | ||
| + | * '''[[/rm|git rm]]''' removes files from staging '''and also from the directory''' | ||
| + | * '''[[/status|git status]]''' shows status of current repository | ||
| + | * '''[[/diff|git diff]]''' shows difference between current directory contents and what you have staged | ||
| + | * '''[[/commit|git commit]]''' commits changes currently staged | ||
| + | ===copying from elsewhere=== | ||
| + | * '''[[/clone|git clone]]''' copies a repository from somewhere else | ||
| + | |} | ||
===Software=== | ===Software=== | ||
* [[git-cola]]: git GUI client | * [[git-cola]]: git GUI client | ||
Revision as of 21:47, 9 December 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
| alphabetical | by function |
|---|---|
|
initialization
creating from scratch
copying from elsewhere
|
Software
- git-cola: git GUI client
Services
- GitHub: free web-based git repository for open-source projects
Links
Reference
Online Books
- Pro Git
- 1.3 Getting Started - Git Basics
- 1.6 Getting Started - Getting Help
- 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
- Learn to use Git @ Code School (free registration required)