Difference between revisions of "Git"
Jump to navigation
Jump to search
(git checkout; gitk) |
(git remote, git push) |
||
Line 24: | Line 24: | ||
* '''[[/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. | * '''[[/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 | * '''[[/push|git push]]''' updates remote refs using local refs, while sending objects necessary to complete the given refs | ||
+ | * '''[[/remote|git remote]]''' {{arg|shortname}} {{arg|url}} | ||
* '''[[/reset|git reset]]''' resets current HEAD to the specified state | * '''[[/reset|git reset]]''' resets current HEAD to the specified state | ||
* '''[[/rm|git rm]]''' removes files from staging '''and also from the directory''' | * '''[[/rm|git rm]]''' removes files from staging '''and also from the directory''' | ||
Line 38: | Line 39: | ||
* '''[[/diff|git diff]]''' shows difference between current directory contents and what you have staged | * '''[[/diff|git diff]]''' shows difference between current directory contents and what you have staged | ||
* '''[[/commit|git commit]]''' commits changes currently staged | * '''[[/commit|git commit]]''' commits changes currently staged | ||
+ | ===copying to elsewhere=== | ||
+ | * '''[[/remote|git remote]] add''' | ||
+ | * '''[[/push|git push]]''' | ||
===copying from elsewhere=== | ===copying from elsewhere=== | ||
* '''[[/clone|git clone]]''' copies a repository from somewhere else | * '''[[/clone|git clone]]''' copies a repository from somewhere else |
Revision as of 02:20, 12 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 to elsewhere
copying from elsewhere
|
Software
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)