In this example, we'll be working with Chapter05/animal_farm/ from https://github.com/PacktPublishing/Mastering-Vim/tree/master/Chapter05/animal_farm. You can also follow along with any project you'd like. Follow these steps if you're setting up a new Git repository:
- Initialize the Git repository in the project's root directory:
$ cd animal_farm/$ git init
2. Stage all files in a directory to be added to the initial commit:
$ git add .
3. Create an initial commit:
$ git commit -m "Initial commit"
Here's sample output from the previous commands:
You should now be ready to work with your newly created repository. ...