27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

48 CHAPTER 3 Developing a real Rails application<br />

Figure 3.2 Add an SSH key.<br />

Now that you’re set up with GitHub, click<br />

the New Repository button on the dashboard<br />

to begin creating a new repository<br />

(see figure 3.3).<br />

On this page, enter the Project Name as<br />

ticketee and click the Create Repository button<br />

to create the repository on GitHub. Now<br />

you are on your project’s page. Follow the<br />

Figure 3.3 Create a new repository.<br />

instructions, especially concerning the configuration of your identity. In listing 3.1,<br />

replace "Your Name" with your real name and you@example.com with your email<br />

address. The email address you provide should be the same as the one you used to<br />

sign up to GitHub. The git commands should be typed into your terminal or command<br />

prompt.<br />

Listing 3.1 Configuring your identity in GitHub<br />

git config --global user.name "Your Name"<br />

git config --global user.email you@example.com<br />

You already have a ticketee directory, and you’re probably inside it. If not, you should<br />

be. To make this directory a git repository, run this easy command:<br />

git init<br />

Your ticketee directory now contains a .git directory, which is your git repository. It’s all<br />

kept in one neat little package<br />

To add all the files for your application to this repository’s staging area, run<br />

git add .

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!