---------diff-----
git checkout master
git checkout -b test
git remote -v
git remote add https://github.com/openstack/neutron.git
git pull github TAG_NUM
git branch
git diff test your_branch
Tree ares:
1. Working directory
2. Staging areas / Index
3. Repository
Three objects (DAG):
1. Commit
2. Tree
3. Blob
(4. Tag)
Every commit holds a tree, and every tree may contain any number of other trees and blobs in its leaves.
Branch --> C1(Commit -- > tree --> blob)
Three-way merge
道生一,一生二,二生三,三生万物...
#################################
test history:
rm main.c
git checkout -f HEAD
git hash-object main.c
git add main.c
git commit -m "This is 1 commit"
ll .git/objects/
find .git/objects/ -type f
find .git/objects/ -type f | wc -l
git show 91c8
git cat-file -t a832
git ls-tree a832
git show -s --pretty=raw 10ea
git tag v1.0
git tag -a milestone1.0 -m "This is the first stable version"
git archive --format=tar --prefix=rubyobjectname/ v1.0 | gzip > /tmp/ruby1.0.tar.gz
git branch
git branch testing
cat .git/HEAD
ls .git/refs/heads/
cat .git/refs/heads/master
cat .git/refs/heads/testing
git branch
git checkout testing
git checkout master
git merge testing
git branch -D testing
git clone http://username:password@github.com/****.git
and
.ssh/config
HOST github.com
PORT 8022