-
Notifications
You must be signed in to change notification settings - Fork 0
Lesson: create a git repository
This lesson is known to work with hydra-head version 6.0.0.
Please update this wiki to reflect any other versions that have been tested.
Note: This lesson is basically equivalent to the Create A New Git Repo step in the RailsBridge Curriculum.
- Create a local git repository that will track all changes to this application's code
In order to track the changes you make to your code, to share your changes with others, and to pull other people's changes into your code, you need some form of Version Control. All of the Hydra projects use Git for version control and share their work on Github.
Now, let's turn this directory into a git repository. Type the following:
$> git init .
Then you should see something like this:
Initialized empty Git repository in /Users/justin/hydra-demo/.git/
Next, we'll add all the files rails created into the repository. This way we can jump back to this state later if the need arises.
$> git add .
$> git commit -m "Initial rails application"
Go on to Lesson: Add the Hydra Dependencies or return to the Dive into Hydra page.