Preparing the application and understanding what we are building
Let's start this session using the application that we started to develop in the previous chapter. However, we will make some adjustments before continuing. First, we are going to add our code to the version control. In this way, we will not lose the progress we made in the previous chapter.
Inside the
chapter-04
folder, create a new file called.gitignore
and add the following code:
storage-db .DS_Store
- See https://help.github.com/articles/ignoring-files for more information about ignoring files
- If you find yourself ignoring temporary files generated by your text editor or operating system, you probably want to add a global ignore instead
git config --global core.excludesfile '~/.gitignore_global'
- Ignore the
storage
folder's due size
The previous code just added the storage-db
folder to untracked files.
Let's add the changes to source control. Inside the Terminal window, type the following command:
git init
Finally, let's add our first...