Git/init
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 themgit 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.