Git FAQs
From Genome Analysis Wiki
Jump to navigationJump to searchIts easy to turn an already existing directory into its own repository.
- cd into your directory.
- Tell git to create a repository:
git init
- Add all your files to the repository:
git add .
- Check that you didn't add any undesired files:
git status
- Remove any undesired files (if necessary):
git reset HEAD filename1 filename2
- Commit the files:
git commit -m Initialize the repository with all the files
Follow this link if you want to create a remote bare Git repository for this repository to push to/pull from