Start local repository

You should always put your code under version control.
Here is recipe how you start a repo with your project on your local machine. Easy peasy … so you have no excuse not to do it.

  • /repo : is the directory where you keep your repositories
  • /work : is your workspace directory
  • blah : is the name of the repo you are creating
cd /repos
mkdir blah.git
cd blah.git
git init --bare
cd ..
cd /work
git clone /repos/blah.git
cd blah
> readme.txt
git add readme.txt
git commit -m 'start ...' -a
git push