Create and pull from shared repository with Git in 5 steps

Earlier, I have been using Mercurial for source control, but at my new job, we decided to go with Git. Even though both solutions are much alike, there’s still new stuff to be learned and explored. I’ll try to post some guides and tips as I adventure into the world of Git.

First a quick 5 step guide to create a shared repository on your local disk or network drive, and then pull it to your working directory.

Create repository:
X:\Projects\git init --bare test_project.git

Pull repository:
C:\Projects\git clone file://X:/Projects/test_project.git
Put files into your repository

git add .
git commit -a -m"Initial commit"
git push

That’s basically it!
I’ll post a more in depth guide with explanations later on.