Setting Up a Git Repository
- Steps
Use the
cdcommand to switch to your project directory, making it the current working directory.Enter
git initto create an empty repository.Enter
git add .to copy your project files into the repository.Enter
git commit -m "Initial commit"to commit all the files.
Use command-line commands to set up a Git repository for an existing project.
|
To set up a repository for an existing project, you have to use the command-line shell implemented by the Terminal utility app.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-02-16)