Difference between revisions of "Git"
Jump to navigation
Jump to search
(→How To) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
[[thing type::software]] | [[thing type::software]] | ||
[[license::open source]] | [[license::open source]] | ||
− | </hide> | + | </hide>__NOTOC__ |
==About== | ==About== | ||
− | [[Git]] is a [[version control system]] based on a powerful distributed model. | + | [[Git]] is a [[version control system]] based on a powerful distributed model. |
+ | ===Pages=== | ||
+ | * '''[[/cmd|commands]]''' | ||
+ | * '''concepts''': | ||
+ | ** [[/squash]]ing | ||
+ | ** [[/modules]] | ||
* [[/notes]] | * [[/notes]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Files=== | ===Files=== | ||
* {{l/sub|gitignore}} | * {{l/sub|gitignore}} | ||
===Software=== | ===Software=== | ||
− | * [https://git-scm.com/downloads/guis GUI clients]: | + | * '''3rd-party''': |
− | ** [[gitk]]: generally distributed with git | + | ** [https://git-scm.com/downloads/guis GUI clients]: |
− | ** [[git-cola]] | + | *** [[gitk]]: generally distributed with git |
− | * [https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols 10.6 Git Internals - Transfer Protocols]: | + | *** [[git-cola]] |
− | + | * '''internals/technical''': | |
− | + | ** [https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols 10.6 Git Internals - Transfer Protocols]: could be used to implement a Git server | |
− | + | * '''services''' - free/open source web-based repository/project managers: | |
− | * [[GitHub]] | + | ** [[Gitea]] |
+ | ** [[GitHub]] is unfortunately owned by [[Microsoft]] | ||
+ | ** [[GitLab]] | ||
===Error Messages=== | ===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.) | * '''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== | ==Links== | ||
===Reference=== | ===Reference=== | ||
Line 79: | Line 34: | ||
* {{l/manpage|git|manpage}} | * {{l/manpage|git|manpage}} | ||
===How To=== | ===How To=== | ||
+ | * [[/color prompt]]: show Git status in the prompt, in colors | ||
* [https://ohshitgit.com/ Oh Shit, Git!?!]: solutions to frequently encountered situations in Git | * [https://ohshitgit.com/ Oh Shit, Git!?!]: solutions to frequently encountered situations in Git | ||
* [https://www.git-tower.com/learn/git/faq/git-rename-master-to-main/ How to Rename the <code>master</code> branch to <code>main</code> in Git]: the [[GitHub]] portion of this is also doable in [[GitLab]], though the process is slightly different. | * [https://www.git-tower.com/learn/git/faq/git-rename-master-to-main/ How to Rename the <code>master</code> branch to <code>main</code> in Git]: the [[GitHub]] portion of this is also doable in [[GitLab]], though the process is slightly different. |
Latest revision as of 22:15, 8 January 2023
About
Git is a version control system based on a powerful distributed model.
Pages
Files
Software
- 3rd-party:
- internals/technical:
- 10.6 Git Internals - Transfer Protocols: could be used to implement a Git server
- services - free/open source web-based repository/project managers:
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
How To
- /color prompt: show Git status in the prompt, in colors
- Oh Shit, Git!?!: solutions to frequently encountered situations in Git
- How to Rename the
master
branch tomain
in Git: the GitHub portion of this is also doable in GitLab, though the process is slightly different. - Change the default branch-name:
- How can I create a Git repository with the default branch name other than "master"?: This lets you change the default name of the branch that is created for new repositories.
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)
Articles
- 2019-03-05 Building software together with Git: a non-technical introduction