O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up a new project

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:

  1. 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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required