WEET's way

如果你不在创造,别人就只能用品味来衡量你,但问题是品位没有办法量化。so create.

All About Git

| Comments

Update Git [1.7.1 ==> 1.8]

yum remove git
yum install perl-CPAN

wget https://git-core.googlecode.com/files/git-1.8.3.2.tar.gz
tar -zxvf git-1.8.3.2.tar.gz
cd git-1.8.3.2
./configure && make && make install

# Install man pages
tar xzv -C /usr/local/share/man -f git-manpages-1.8.3.2.tar.gz

Configure GitHub

cd ~/.ssh
ssh-kengen
# Copy *id_rsa.pub* to *SSH Keys* @github.com

FAQ

1. Checkout/Push a remote branch

Git how to create remote branch

# Checkout
git fetch 
git checkout -b origin origin/learn

# Push
git push --set-upstream origin learn

2. Checkout a branch by tag

git checkout -b  [NEW-BRANCH-NAME]  [TAG-NAME]

Comments