WindowsCreate the tutorial directory anywhere on your computer. Right-click and then click "Git Create repository here" to have that directory tracked by Git. In the following screen, click "OK" without checking "Make it Bare". Upon successfully creating a repository, click "OK" and close it in the next prompt. If everything is done correctly, the tutorial directory will now have a new icon as shown below. If the icon remains unchanged, try right-clicking on the file and choose "Update to the latest status".
MacCreate the tutorial directory anywhere on your machine. After that, run SourceTree. Click "Add Repository" located on the top left of the bookmarks list window. Alternatively you can choose File > New from the menu bar. Click on "Create a Repository". Enter the target directory name that will be used to create a local repository. Click the "Create" button. We will bookmark the directory as "tutorial". The new repository should now be listed the bookmarks list.
Command LineCreate the tutorial directory anywhere on your computer. Access the directory and use the "init" command to turn that directory into a local Git repository.
$ git initFollow the steps below to turn the new tutorial directory into a Git repository.
$ mkdir tutorial $ cd tutorial $ git init Initialized empty Git repository in /Users/yourname/Desktop/tutorial/.git/