-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
65 lines (51 loc) · 1.77 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
This my first git src manage project
git config --global --user.name "pythonwood"
git config --global --user.email "582223837@qq.com
# git config --global --list #list all
# git config --global color.ui "auto"
mk HelloWorld
cd HelloWorld
git init #make .git
git add .
git status #which is changed
git commit -m "add commit: add something" \
-m "This allows for a more semantic document."
#git log -1 #显示最后一次
###############################################################
二次开发:2013-10-29
###################################################################
# 开心发现,Ubuntu极点五笔切换右边Alt是快捷键!之前用Ctrl+Alt或Ctrl+Space都不方便,比右shift临时换输入法更好!
###################################################################
git clone git@github.com:/pythonwood/HelloWorld.git
#
git commit -amend # 非常有用,再次提交一次,覆盖上一次的。
# 比较记忆 重要! 易混淆!
git add & git reset
git commit & git checkout
rebase 分支衍合测试:
c1 -> C4 -> C7 master
\
C2 -> C3 branch20131029
\
C5 -> C6 branch2
C1: clear workspace and ready
C4: 修改了.gitignore
C5: 修改了HelloWorld
C6: 增加了bottle.py
C7: 修改了README
after rebase :
git checkout branch2
git rebase --onto master branch20131029 branch2
git checkout master
git merge branch2
git rebase master branch20131029
git checkout master
git merge branch20131029
git branch -v
# git branch -d branch20131029 branch2
C1 -> C4 -> C7 -> C5' -> C6' -> C2' -> C3'
then commit again in master for README:
#################################################
20131029 for merge in merge1
创建分支合并后不删除分支,到分支上再开发了一下。
-for merge conflect:1-