dive into git

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
git clone = svn co
git remote show = svn info
git branch + git checkout = git switch

git clone = git init + git remote

step:
git init
mkdir project.git
cd project.git
git remote add -f -t master -m master orgin git://example.com/git.git (or https://example.com/git.git)
git merge origin
touch file.txt
git commit -m 'test commit'
git push origin master

1
2
3
4
git branch
git checkout
git rebase
git reset --hard