TAG

git tag v0.1
git tag v0,1 xxxxxx

git branch stable v2.5 # start a new branch named "stable" based on v2.5

git branch -d branchname   # delete a branch

how to delete tags?

peter@peter-laptop:~/peki/.git/refs/remotes/origin$ vim master

what is in master is the last commit number

how to merge

[root@dhcp03 libs]# git branch

master

test2

[root@dhcp03 libs]# git checkout master
Switched to branch 'master'
[root@dhcp03 libs]# git merge test2

OK

I am makeing a change on branch test

git branch test
git checkout test
//make a change
git diff -p master -- . > my-patch.txt
then I
peter@peter-laptop:~/kdocs/linux/git$ git checkout master
M	linux/git/1.c
Switched to branch "master"
peter@peter-laptop:~/kdocs/linux/git$ git apply  my-patch.txt
linux/git/my-patch.txt:10: trailing whitespace.

sub repo

Git meets a probelm when I creat sub repo doc-yaxtu/yum-doc, so I remove this dir then I find another dir also has .git, so I delete it as well it seems to me that the newer version has subrepo support, but not perfect. and the one in ubuntu repo has no such support.