Git/init

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Git
Revision as of 00:27, 6 August 2022 by Woozle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
git init

Action: Create an empty Git repository or reinitialize an existing one

To be clear: to turn a bunch of files into a git repository, you do two things:

  • git init -- that just kind of sets up the .git folder; it doesn't look at the files or do anything with them
  • git add . -- this tells git to go ahead and add the files to the repository.

...and then of course you can commit the files if you're ready to do any kind of transfer operations.

Links

Documentation