Category Archives: Git

Idiots guide to getting started in git

A new repo from scratch Create a directory to contain the project. Go into the new directory. Type git init. Write some code. Type git add to add the files Type git commit. A new repo from an existing project Say you’ve got an existing project that you want to start tracking with git. Go into the directory containing… Read More »

Category: Git

Git for steve the idiot

Add git to an existing project Create a new repo on bitbucket cd to project you wish to git… # cd /usr/local/www/apache24/data/project123 # git init Initialized empty Git repository in /usr/local/www/apache24/data/project123/.git/ # git remote add origin # git add . # git status # git commit -m “First commit” # git push origin master Add 2nd machine to… Read More »

Category: Git