Create a new code project
You can quickly use Visual Studio with Git to create a new code project under local version control on your dev machine.
Create the code project
If you haven't already, install Visual Studio 2013.
In Visual Studio, create a project (Keyboard: Ctrl + Shift + N).
Choose a template and add the new code project to version control. We suggest that you put your new project in c:\Users\YourName\Source\Repos\
When prompted, select Git.
Your code project is created in your new local Git repository.
Commit the code project
Before you begin coding, commit the new code project files in your local repository.
- View the changes (Keyboard: Ctrl + 0, G).
- If you haven't entered your name and email address yet, you must do this first. These will be associated with your commits.
Now you can enter a comment, and commit your changes.
Your changes have been committed locally.
Try this next
Q:Can I get started with Git from a remote repository?
A:Yes. You can clone a remote repository to your dev machine.
Q:Can I use Git command-prompt tools?
A:Yes. Use Git from the command prompt.