Differences between revisions 4 and 7 (spanning 3 versions)
Revision 4 as of 2021-05-13 14:33:39
Size: 225
Comment:
Revision 7 as of 2023-04-03 02:23:39
Size: 1303
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 ==

See:

 * [[Git/Branches|GitBranches]]
All [[Linux]] distributions offer a `git` package. Most [[BSD]] distributions do as well.
Line 19: Line 18:
== Web Interfaces == == 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 [[Git/Branches|here]].

----



== Related Utilities and Services ==

=== Text Interfaces ===



=== Web Interfaces ===
Line 28: Line 49:
=== Services ===

 * [[Git/GitShell|git-shell]]

----



== Tips ==



=== 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
}}}


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.


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.


Text Interfaces

Web Interfaces

See:

Services


Tips

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


CategoryRicottone

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