Saturday, August 14, 2010

The STAMAN Project: Phase II, version control

First thing is first: I created the project on my choice of hosting site, than prepped

terry@dixie$ cd ~/proj;git init STAMAN; cd STAMAN; touch README
Initialized empty Git repository in /home/terry/proj/STAMAN/.git/
terry@dixie$ ls
README
terry@dixie$ git add README
terry@dixie$ git commit -m 'first commit'
[master (root-commit) f012d8e] first commit
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 README
terry@dixie$ git remote add origin path spec to the repo
terry@dixie$ git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 222 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To path spec to the repo
 * [new branch]      master -> master
terry@dixie$

In essence, create a new git repo in ~/proj/STAMAN, add a blank readme file and push it to the mirror. Simple.

If you're not using version control, you're brain damaged. It's that simple. 

I recommend Git and Mercurial, because I consider CVS, Subversion, and increasingly Bazaar as well, to be flawed models of doing version control. Git is what I use the most, so obviously I'm using it here :-P.

Much to tired to go into the sanity that is using version control, and using it rightly. Learn how to Google.

No comments:

Post a Comment