Changes

From Genome Analysis Wiki
Jump to navigationJump to search
681 bytes added ,  18:00, 14 July 2011
Created page with 'Its easy to turn an already existing directory into its own repository. # cd into your directory. # Tell git to create a repository: #* <code>git init</code> # Add all your file…'
Its easy to turn an already existing directory into its own repository.

# cd into your directory.
# Tell git to create a repository:
#* <code>git init</code>
# Add all your files to the repository:
#* <code>git add .</code>
# Check that you didn't add any undesired files:
#* <code>git status</code>
# Remove any undesired files (if necessary):
#* <code>git reset HEAD ''filename1 filename2''
# Commit the files:
#* <code>git commit -m ''Initialize the repository with all the files''</code>


Follow this link if you want to [[Create a remote bare Git repository for a repository to push to/pull from|create a remote bare Git repository for this repository to push to/pull from]]

Navigation menu