Monday, April 7, 2008

git: basic commands for standalobne individual tracking

Try git, it is fun.
git can be even more convenient tool for keeping local text/source than rcs.

Advantages of git (or may be disadvantages for some sort of guys):
- Easy commands, mimic of the os.
- repository by default is in the same directory as code/files you wan to track
(no need for complex admin commands, like in cvs and svn, no need for setting env vars to remember place where repository is.)
- Ability to track subdirs.
- Descriptive status messages on commit(like CVS, but more info).
- Easy to track moving, renaming deletion inside of dir.

example of terminal session with git to try it:


mdkir test
cd test
git init
touch new_file
git add new_file
git commit *
vi new_file
git diff
mkdir new_tst_dir
cd new_tst_dir
touch file1
touch file2
cd ..
git add new_tst_dir
this adds dir, not files
git add new_tst_dir/*
vi new_tst_dir/file1
vi new_tst_dir/file2
git commit
does not commit directory in subdir
git commit \*
works well
vi new_file
vi new_tst_dir
git commit \*


be happy with git. :)

No comments: