
上QQ阅读APP看书,第一时间看更新
Initializing Git
The first thing we need to do to use Git, after installing it of course, is to set up a folder as our Git repository. This only takes a couple of commands on the command line, as shown here:

After that, we move to the folders where we want the repository to be, that is, git init and git add. Once we've initialized the repository, we add any files that we've already created to it with the git add command. Then, we create our first safe point in the code with the git commit -a command, as shown here:
git commit -a