Difference between revisions of "Git"
Jump to navigation
Jump to search
(squashing) |
(tree commands) |
||
Line 21: | Line 21: | ||
* '''[[/clone|git clone]]''' copies a repository from somewhere else | * '''[[/clone|git clone]]''' copies a repository from somewhere else | ||
* '''[[/commit|git commit]]''' commits changes currently staged | * '''[[/commit|git commit]]''' commits changes currently staged | ||
+ | * '''[[/commit-tree|git commit-tree]] | ||
* '''[[/config|git config]]''' | * '''[[/config|git config]]''' | ||
* '''[[/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 | ||
Line 29: | Line 30: | ||
* '''[[/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 | ||
* '''[[/rebase|git rebase]]''' forward-port local commits to the updated upstream head | * '''[[/rebase|git rebase]]''' forward-port local commits to the updated upstream head | ||
+ | * '''[[/read-tree|git read-tree]] | ||
* '''[[/remote|git remote]]''' manage aliases for remote repositories | * '''[[/remote|git remote]]''' manage aliases for remote repositories | ||
* '''[[/reset|git reset]]''' resets current HEAD to the specified state | * '''[[/reset|git reset]]''' resets current HEAD to the specified state | ||
Line 36: | Line 38: | ||
* '''[[/status|git status]]''' shows status of current repository | * '''[[/status|git status]]''' shows status of current repository | ||
* '''[[/tag|git tag]]''' creates an alias for a particular revision | * '''[[/tag|git tag]]''' creates an alias for a particular revision | ||
+ | * '''[[/worktree|git worktree]] | ||
+ | * '''[[/write-tree|git write-tree]] | ||
| valign=top | | | valign=top | | ||
===initialization=== | ===initialization=== |
Revision as of 14:32, 12 November 2018
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!
|
Concepts
Commands
alphabetical | by function |
---|---|
|
initialization
creating from scratch
copying to elsewhere
copying from elsewhere
|
Files
Software
Services
- GitHub: free web-based git repository for open-source projects
Error Messages
- Error Code 403 fatal: HTTP request failed may indicate a bad password. I've found that sometimes the password either doesn't paste properly or else isn't being accepted the first time; trying again with the same password may work. (The password is not displayed, so I'm not sure which it is.)
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."
- 4.4 Git on the Server - Setting Up the Server
Online Courses
- Learn to use Git @ Code School (free registration required)