Implementing SVC Into the Rails Application
In this guide we'll push our project to GitHub to implement source version control for the application.
Guide Tasks
  • Read Tutorial
  • Watch Guide Video
Video locked
This video is viewable to users with a Bottega Bootcamp license

In this guide we'll walk through how to create a repository and push it to Github. This is also called integrating source version control into the application. This will let us track our application at each feature build.

First, go to GitHub, and create a login, if you don't have one already.

Once you're logged in, look for a plus sign on the right-hand top corner. When you click here, you'll be given the option to create a new repository.

large

I'm going to call this repository overtime-app and make it public so you can see all the code. For the default settings we don't want an auto-generated Readme file. When I click on Create Repository, it should take me to the next page.

large

I want to push my code from the command line, so I click on the small button on the right end of the third option to copy the commands supplied by GitHub.

Now, go to the command prompt and initialize the repository with the code

git init

Next, type the command:

git add .

And this will save all the files. Now we can see all of the code files that are going to be pushed up by running the command:

git status

This should bring up a list of files in green.

large

Next, commit these files to github with the command:

git ci -m "Initial commit with requirements"

Lastly, paste the code that you got from the create repository page of github. This command will push all the files to the repository.

large

Now, if you go to github, you can see all the files. Open the README.md file, and see how it looks.

In the next guide, we'll create our first feature.

Resources