Git repositories: Difference between revisions
From wikinotes
No edit summary |
|||
Line 14: | Line 14: | ||
git init | git init | ||
</source> | </source> | ||
</blockquote><!-- creating a repo --> | </blockquote><!-- creating a repo --> | ||
= Special Cases = | = Special Cases = | ||
<blockquote> | <blockquote> | ||
== Verify == | == Verify == | ||
<blockquote> | <blockquote> |
Latest revision as of 04:05, 5 February 2022
Creating a Repo
creating a repository (to be synchronized to/from)
cd /path/projectname git init --barecreate a project (to work in, push/pull from repo)
cd /path/projectname git init
Special Cases
Verify
git fsck ## check that repo is not corruptLarge Files
The git repo also reads
~/.gitconfig
, and if you are experiencing issues cloning large files, it can be helpful to perform the following on the server, and if that does not help, on the client as well.#### ~/.gitconfig [pack] windowMemory = 1000m SizeLimit = 1000m threads = 1 window = 0