from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Git
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.