Creating a new git repository
If you are working on your own project, you will want to create your own repository. You can create the repository on your local system, or on a remote site such as GitHub.
Getting ready
All projects in git need a master folder that holds the rest of the project files.
$ mkdir MyProject $ cd MyProject
How to do it...
The git init
command creates the .git
subfolder within your current working directory and initializes the files that configure git
.
$ git init
How it works...
The git init
command initializes a git
repository for local use. If you want to allow remote users access this repository, you need to enable that with the update-server-info
command:
$ git update-server-info