Differences between revisions 5 and 9 (spanning 4 versions)
Revision 5 as of 2021-12-29 03:51:24
Size: 658
Comment:
Revision 9 as of 2023-04-05 17:48:49
Size: 1324
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

'''Git''' is a version control system designed to be used in a distributed ecosystem and primarily interfaced in a terminal (i.e. `git(1)`).
Line 8: Line 10:
== Installation ==
Line 9: Line 12:
== Git Versioning System == All [[Linux]] distributions offer a `git` package. Most [[BSD]] distributions do as well.
Line 11: Line 14:
See:

 * [[Git/Branches|Git Branches]]
On [[Windows]], see the [[https://gitforwindows.org/|Git for Windows]] project.
Line 19: Line 20:
== Web Interfaces == == Usage ==
Line 21: Line 22:
See: To begin tracking a directory, run `git init`. This creates a `.git` folder to maintain the internal state of the version control system.
Line 23: Line 24:
 * !GitWeb
 * [[CGit|CGit]]
Use `git status` to show the current state in a human-readable format.



=== Branches ===

For more information about using branches, see [[Git/Branches|here]].
Line 30: Line 36:
== Tips == == Troubleshooting ==
Line 53: Line 59:
----



== See also ==

[[https://man.archlinux.org/man/git.1|git(1)]]

[[Git/GitShell|git-shell]]

[[CGit|CGit]]

Git

Git is a version control system designed to be used in a distributed ecosystem and primarily interfaced in a terminal (i.e. git(1)).


Installation

All Linux distributions offer a git package. Most BSD distributions do as well.

On Windows, see the Git for Windows project.


Usage

To begin tracking a directory, run git init. This creates a .git folder to maintain the internal state of the version control system.

Use git status to show the current state in a human-readable format.

Branches

For more information about using branches, see here.


Troubleshooting

Fatal error when cloning a remote repository

If git fails to clone a remote repository, possibly with one of the following error messages:

fatal: fetch-pack: invalid index-pack output
...
fatal: early EOF
fatal: index-pack failed

Then try a shallow clone first:

git clone --depth 1 https://example.com/repo.git
git fetch --unshallow
git pull --all


See also

git(1)

git-shell

CGit


CategoryRicottone

Git (last edited 2025-01-29 15:37:43 by DominicRicottone)