Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增功能完善原项目 #6

Open
wants to merge 3,420 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3420 commits
Select commit Hold shift + click to select a range
4aac43e
Create test20170531 (#2120)
Eviwang Jun 8, 2017
549143f
add N3verL4nd.txt (#2121)
N3verL4nd Jun 8, 2017
8025ca8
add case.txt (#2119)
cypggs Jun 8, 2017
7da5eab
讲得太好了!谢谢廖老师!廖老师太帅了! (#2114)
Piccolo-Daimao Jun 8, 2017
b594165
add my md (#2115)
Jun 8, 2017
095db25
myTest (#2116)
XieWC Jun 8, 2017
2e79fe1
asdcmd.txt commit (#2110)
Jun 8, 2017
d3f0c6c
added myself file (#2112)
Jun 8, 2017
ccd51cc
Create fallenff.txt (#2113)
Fallenff Jun 8, 2017
59ad0c6
thankyou (#2111)
xiongmi Jun 8, 2017
8b265fb
Just for testing pull request (#2152)
EricAndEric Jun 22, 2017
6c33fcd
Git 常用命令快速回忆 (#2151)
7wwwwwww Jun 22, 2017
473f06a
pull test (#2150)
yiliangmi Jun 22, 2017
083c6da
Create yltx (#2149)
yelantingxue Jun 22, 2017
82b6002
dd (#2147)
One-Meter-Sunlight Jun 22, 2017
bd5d8f2
One miss content (#2146)
bingtian97 Jun 22, 2017
9e585f8
add good lesson (#2145)
wentry11 Jun 22, 2017
b7d4195
test pull request (#2144)
zealfory Jun 22, 2017
367395e
it's so cool (#2142)
c-dafan Jun 22, 2017
6322b91
Create 谢谢指导 (#2141)
wheatforest Jun 22, 2017
70f27cd
learn note (#2140)
KDL-in Jun 22, 2017
fdd25ff
林的笔记 (#2139)
linlaoshi Jun 22, 2017
9b1074f
Create hahahaha (#2137)
jlg17 Jun 22, 2017
b59af15
提交建议 (#2136)
shanghenggit Jun 22, 2017
b7cbfb8
Thanks teachers for Liao xuefeng (#2135)
yuly Jun 22, 2017
2751b22
Git部分整理 (#2156)
cnxzw Jun 23, 2017
c60995e
6.22 beijing (#2154)
dreamerleague Jun 23, 2017
a5c4871
maoyutao (#2155)
maoyutao Jun 23, 2017
08ee8b8
thinks (#2159)
2576657440 Jul 4, 2017
a0c1dca
add hahahahaha (#2176)
xinzhou1016 Jul 4, 2017
c344f6a
dchaofei感谢老师 (#2173)
dchaofei Jul 4, 2017
ae14a74
learngit (#2171)
fallrice Jul 4, 2017
19e06c7
提交学习笔记 (#2169)
yushengming Jul 4, 2017
5f8b779
add 20170630.txt (#2170)
zhuzhecheng Jul 4, 2017
cfef463
学习笔记 (#2168)
coffee100 Jul 4, 2017
5cf27ef
thx for liao (#2167)
TurtleHehu Jul 4, 2017
9a6a509
特意来感谢老师 (#2164)
Power-kxLee Jul 4, 2017
cc50fda
joke (#2163)
harlancui Jul 4, 2017
524705c
add Jimmy (#2162)
lijianfighting Jul 4, 2017
9919f80
Xmansec learn git (#2161)
Xmansec Jul 4, 2017
fc0ce29
感谢廖老师 (#2158)
XiaohanLoong Jul 4, 2017
b7671be
add git_learn_git_zerohd4869.txt (#2166)
hudou95 Jul 4, 2017
d2f0945
add jacktown11.txt (#2209)
jacktown11 Jul 25, 2017
cec9783
Update 123.txt (#2202)
haochengxu Jul 25, 2017
04a805c
Create hurricanemad (#2203)
hurricanemad Jul 25, 2017
b416ec8
1724464648@q。com (#2199)
SunBrook Jul 25, 2017
7128d8e
Create winway.txt (#2198)
winway Jul 25, 2017
0acf7c3
add mygitnote.txt (#2204)
austyywl Jul 25, 2017
da61fa3
add thanksalot.txt (#2205)
kkmm Jul 25, 2017
f5947c9
first (#2206)
liuxianlin Jul 25, 2017
9e2a88e
study notes (#2207)
felixliou Jul 25, 2017
f1a7914
pull request test.txt (#2208)
troy1213 Jul 25, 2017
32867b6
Create jingsuwen1.txt (#2210)
jingsuwen1 Jul 25, 2017
5855656
Thanks and suggestion (#2197)
LeryLee Jul 25, 2017
f3c9b00
尝试推送 (#2196)
yangzedong Jul 25, 2017
6c8bb4a
clean part (#2195)
ysysyys Jul 25, 2017
9fe3294
gitnote (#2194)
gongpixin Jul 25, 2017
f98f6e3
Create try pull requests (#2193)
sagekobe Jul 25, 2017
0172be9
added something (#2192)
p870668723 Jul 25, 2017
aef7d13
xuexigit (#2191)
godxiang Jul 25, 2017
f983350
add 谢谢廖老师的git课程,受益匪浅.md (#2184)
hfcrwx Jul 25, 2017
7a16406
新增心得体会 (#2186)
pan1560 Jul 25, 2017
ebe8f55
谢谢指教 (#2187)
tangjqwysj Jul 25, 2017
47d28ee
add testtest.txt (#2189)
gyf210 Jul 25, 2017
1b7c09a
Testbranch (#2190)
zc277584121 Jul 25, 2017
e5970a5
提交 (#2183)
xiufenZhou Jul 25, 2017
bad5188
PULLTest (#2179)
zywezreal Jul 25, 2017
946d053
thanks for miao (#2178)
gituserjyh Jul 25, 2017
b953931
Create your-haoyang520.txt (#2180)
haoyang520 Jul 25, 2017
b61040a
test pull request (#2181)
tianjian-sky Jul 25, 2017
6766ca8
Create thx (#2182)
liyipengmt Jul 25, 2017
0dd507c
谢谢老师 (#2265)
WEIGE212 Aug 14, 2017
4eccdd6
git学习笔记 (#2264)
linjiaqin1995 Aug 14, 2017
6faa72b
测试上传 (#2263)
df257 Aug 14, 2017
82a5635
Add Andrew.txt (#2262)
AndrewOYLK Aug 14, 2017
d160bce
Create fanfanplus.txt (#2260)
fanfanplus Aug 14, 2017
2d4eb2f
add my thanks (#2261)
realcx Aug 14, 2017
bba1852
Thank you very much (#2251)
leoding Aug 14, 2017
52758c5
Create xbtq77.txt (#2250)
xbtq77 Aug 14, 2017
759d70c
add gz.txt (#2237)
guizhuang Aug 14, 2017
b5191d0
谢谢 (#2234)
RocFeng Aug 14, 2017
22b0377
add new file (#2235)
heliumin Aug 14, 2017
9dad864
test push (#2257)
zhangchunliu Aug 14, 2017
55a6c8a
Create yangxinpan.txt (#2256)
SilenceYangXP Aug 14, 2017
7039e91
thanks (#2255)
ScorpioGu Aug 14, 2017
da6e580
谢谢老师 (#2254)
WhiteHSBG Aug 14, 2017
aaf1f47
test (#2246)
wbaizx Aug 14, 2017
e5ba660
test (#2244)
Dust-chen Aug 14, 2017
a3cfbcc
2002wmj add (#2258)
2002wmj Aug 14, 2017
2660063
test pr (#2241)
ethgithub Aug 14, 2017
84c5951
GitNote (#2223)
Wykay-z Aug 14, 2017
168e209
my learngit note (#2240)
nztraveler Aug 14, 2017
f63f70a
了解了Git和SVN的区别 (#2224)
helloexp Aug 14, 2017
ebcd449
Storyc pull request learning (#2225)
Lin1018 Aug 14, 2017
4cc64ef
add thanks.txt (#2243)
xbcReal Aug 14, 2017
ce135c7
Create KieranRao (#2238)
KieranRao Aug 14, 2017
9501d13
add yy.txt (#2232)
Aug 14, 2017
ab48984
尝试 pull request (#2231)
xkfx Aug 14, 2017
215a376
感谢廖老师 (#2230)
AllanXiaoh Aug 14, 2017
19125d9
提交Git成长日记 (#2229)
changhf Aug 14, 2017
0a96dbe
add my git tips (#2227)
skyinu Aug 14, 2017
316a8a4
感谢廖老师 (#2222)
Sylar1999 Aug 14, 2017
c64072c
thank you (#2221)
zyqing14 Aug 14, 2017
927dd63
Create tas-smith.txt (#2219)
tas-smith Aug 14, 2017
6060802
add by [email protected] (#2218)
Chengran888 Aug 14, 2017
6204b70
add xiaoheifish (#2216)
xiaoheifish Aug 14, 2017
8ad41cd
my test (#2211)
dabenshi Aug 14, 2017
8d081f2
add pull request txt (#2213)
Houheshuai Aug 14, 2017
672c671
add the txt file (#2214)
junjieyulu Aug 14, 2017
72c1a9e
christina999 (#2215)
christina999 Aug 14, 2017
785be9f
xml.txt (#2305)
XuemeiLin Aug 28, 2017
5232a24
git learn (#2302)
shuxinhuang Aug 28, 2017
390855e
create tyh0221.txt (#2301)
tyh0221 Aug 28, 2017
f116e79
thank you (#2300)
20113261 Aug 28, 2017
3543e30
Create git 源代码管理工具--学习笔记 (#2299)
Heroor Aug 28, 2017
0795746
add iniio.txt (#2298)
yew Aug 28, 2017
353862e
复习git (#2297)
edxi Aug 28, 2017
4b7c825
yimao009的心得 (#2296)
yimao009 Aug 28, 2017
65df62a
added my fist file (#2294)
AllenAllenShi Aug 28, 2017
6f2e437
git study (#2293)
dreamingyin Aug 28, 2017
16979ff
关于远程标签删除 (#2291)
Aug 28, 2017
3b9220e
add git学习心得 (#2278)
sophie0000 Aug 28, 2017
da779b1
test pull request (#2280)
Ame-maybe Aug 28, 2017
2576498
add SHRemover.md (#2281)
SHRemover Aug 28, 2017
1523eeb
290963196 express thanks (#2290)
wind-sky Aug 28, 2017
5e40f34
Create 11 (#2289)
serpahimor Aug 28, 2017
14e165f
Update Clearlove9.txt (#2268)
wkz20042008 Aug 28, 2017
6e6c7f5
add chaohony (#2288)
chaohony Aug 28, 2017
8d7c7a8
my github website is https://github.com/githubao (#2271)
xiaoaxe Aug 28, 2017
c8bf8e7
my experience (#2272)
WhutMJ Aug 28, 2017
9c83d6d
Create my-github-AaronLee89.txt (#2273)
Aug 28, 2017
4c8f3cf
glihui (#2270)
Aug 28, 2017
ac43860
zhihuzhihu.txt (#2286)
zhihuzhihu Aug 28, 2017
3319b1c
AAAAAA_Jian_haha (#2285)
Jian2017 Aug 28, 2017
33baba9
your-github-id.txt (#2284)
SiHuaHe Aug 28, 2017
fc8b9ab
谢谢老师 (#2283)
changk99 Aug 28, 2017
0349acd
Create sonya1.txt (#2282)
sonya1 Aug 28, 2017
7fac915
pull request try (#2275)
WhuerLI Aug 28, 2017
9895992
Bens1320学习心得 (#2326)
bens1320 Sep 5, 2017
0161942
Create liuende.txt (#2323)
liuende501 Sep 5, 2017
2999f3c
添加文件 softpaopao.txt (#2321)
softpaopao Sep 5, 2017
52ba1f3
thanks Michael for your help (#2322)
lordjun Sep 5, 2017
21cc54b
Create chick-tiger.txt (#2325)
chick-tiger Sep 5, 2017
d343755
add note (#2318)
xinychan Sep 5, 2017
d6fcd08
test push (#2319)
gaomengsuijia Sep 5, 2017
1db6f84
ganxiexin (#2317)
Sep 5, 2017
03ce46f
Create ran89Louis.txt (#2316)
ran89Louis Sep 5, 2017
4dc4f1c
add PR_test.txt (#2314)
Sep 5, 2017
d175bb3
Create imyhxy-pullRequest-test.txt (#2313)
imyhxy Sep 5, 2017
b845069
add buaa10061123.txt (#2312)
buaa10061123 Sep 5, 2017
865bcbc
Add files via upload (#2311)
orance Sep 5, 2017
810b664
add epianzhi (#2306)
epianzhi Sep 5, 2017
0282b15
for trying pull request (#2307)
AskaTsai Sep 5, 2017
0759d70
Test r (#2309)
z454009823 Sep 5, 2017
d2effa9
add xinde.txt (#2320)
kli-casia Sep 5, 2017
357e129
sssss (#2308)
z454009823 Sep 5, 2017
25b00f1
thanks (#2338)
Sep 10, 2017
4b7df00
commit 9.8 Study Note (#2336)
laokiea Sep 10, 2017
e222adc
ashareport (#2335)
guanhaiyunyuan Sep 10, 2017
4944036
我整理的学习笔记 (#2334)
JYG0723 Sep 10, 2017
eac78f7
test_pullRequest by James (#2333)
ldisthebest Sep 10, 2017
ddc54b3
谢谢廖老师! (#2332)
hx313 Sep 10, 2017
7afb9ac
ajax_test (#2331)
1ikeSmi1e Sep 10, 2017
96f415e
pull request (#2329)
ZhengyiJiang Sep 10, 2017
993d85e
Lifestream 修改 (#2328)
LifeStreams Sep 10, 2017
a86c7b7
add Thanks.txt (#2327)
ymqy Sep 10, 2017
8ae5e59
anyingyi-谢谢廖老师.txt (#2356)
anyingyi Sep 19, 2017
f4961fd
Create 测试 (#2355)
1085069832 Sep 19, 2017
6927fc8
姚鑫 test (#2354)
yaoxin940211 Sep 19, 2017
49d90ba
Add tctest.txt (#2353)
TerrenceChao Sep 19, 2017
5d4c87f
are you OK? (#2350)
yangeshare Sep 19, 2017
ad0157b
SevenZHOU (#2349)
Se7enZHOU Sep 19, 2017
8d07a75
Create northpolecan_test_pullrequest (#2348)
northpolecan Sep 19, 2017
bbcd2b1
Thanks very much for the lecture (#2347)
hustqb Sep 19, 2017
7f97594
qqq (#2346)
fendou2018 Sep 19, 2017
610f9f9
Create ThxMrLiao.txt (#2339)
didiaodeadai Sep 19, 2017
5d833b8
wrote a readme file (#2340)
jiangyahua Sep 19, 2017
8c97c76
test fork (#2341)
yiying66 Sep 19, 2017
71221db
pull request test (#2342)
JungleLu Sep 19, 2017
f0bf26d
郭垒的Git学习笔记。 (#2343)
KwokKwok Sep 19, 2017
6faf36e
change (#2344)
panpan96 Sep 19, 2017
7f46cb9
learn pull request (#2362)
gaolijun0903 Sep 22, 2017
3b42cea
修改 (#2360)
davidvivi Sep 22, 2017
2d37c1a
add my zerx (#2359)
Zerxoi Sep 22, 2017
9436cf5
add new txt (#2358)
IamSunGuangzhi Sep 22, 2017
57f6686
php新人学习git (#2357)
Namw Sep 22, 2017
0ad14a0
Create carl1314-github-id.txt (#2390)
carl1314 Oct 5, 2017
c74c1b4
Create Chuhc (#2389)
ChuhC Oct 5, 2017
5ab66b1
adding thanks_very_much from vincent (#2388)
liuyouxi163 Oct 5, 2017
2b3a4cd
Create github使用心得 (#2371)
LJZJIANG Oct 5, 2017
5aa23df
add my file (#2368)
tqs930113 Oct 5, 2017
656b809
感谢,顺道试试pull request功能 (#2366)
csyanbin Oct 5, 2017
64ce86b
小志的备注 (#2364)
xiaozhi1 Oct 5, 2017
7f557cd
add a markdown file (#2375)
feizhihui Oct 5, 2017
ebf5911
test pull request (#2367)
doudousu Oct 5, 2017
32f8f5b
谢谢廖老师,请廖老师查收 (#2376)
Pilut Oct 5, 2017
edfea7c
Update and rename test.txt to matest.txt (#2377)
alps-sun Oct 5, 2017
d319edb
vemwyzys的笔记 (#2379)
vemwyzys Oct 5, 2017
210db26
Create lzy-github-gogoid (#2383)
lzyu Oct 5, 2017
8968263
20170928 (#2378)
fujunguo Oct 5, 2017
6cbea51
爱你 (#2384)
BruseWang Oct 5, 2017
03c5f47
my first file. (#2386)
slwangzi Oct 5, 2017
674b66b
add 刘进军.txt (#2373)
liujinjuncool Oct 5, 2017
c46084e
add wqh.txt (#2393)
EggsBlue Oct 8, 2017
bdc2428
test for pull and request (#2392)
yueshangzuo Oct 8, 2017
4edd3e2
aloehuang-thankyou (#2391)
Aloehuang Oct 8, 2017
7d9abc3
add unhj005.txt (#2394)
unhj005 Oct 8, 2017
7f682b1
addharton (#2410)
codeHarton Oct 17, 2017
f2b4538
hello world (#2409)
ganzhancheng Oct 17, 2017
840d497
This is a practice for pull-request (#2407)
Xingfush Oct 17, 2017
d1614fc
Create 廖大大真棒 (#2406)
ChenMartin Oct 17, 2017
224d83a
are u okay? (#2404)
evilvlso Oct 17, 2017
5705727
pull test (#2403)
gyqiu Oct 17, 2017
7c8472d
ukinhappy (#2401)
ukinhappy Oct 17, 2017
5684e39
srj (#2402)
Oct 17, 2017
720986d
老师辛苦了 (#2400)
jt1024 Oct 17, 2017
cf45f0a
Thank you (#2399)
ethanma Oct 17, 2017
214d379
又看一遍 (#2396)
wenlouyin Oct 17, 2017
3db0588
Create 你好廖老师 (#2397)
vvvzjp Oct 17, 2017
70e397a
Create heisback.txt (#2398)
heisback Oct 17, 2017
74ebe97
A happy learning experience (#2446)
Lyuzl Nov 2, 2017
6b75aaa
Create Gemma-mobu.txt (#2445)
Nov 2, 2017
2a53e01
Add files via upload (#2439)
zhuminjiong Nov 2, 2017
bf0a5ee
Create liutaoggit.txt (#2443)
liutaoggit Nov 2, 2017
a2865d4
3q (#2444)
RunAndRun Nov 2, 2017
0074c0a
add YangYuChina.txt (#2437)
YangYuChina Nov 2, 2017
94dae9b
Dev (#2436)
youhusky Nov 2, 2017
565a507
test (#2435)
muyeer Nov 2, 2017
2e37517
add WayenVan.txt (#2433)
WayenVan Nov 2, 2017
7fb63b6
Just for test (#2431)
XiaYinan Nov 2, 2017
128383a
老师教程里的指令笔记 (#2432)
marsjhao Nov 2, 2017
e1f8d12
new note try (#2430)
goodniuniu Nov 2, 2017
fbcbe59
Ilv (#2434)
Nov 2, 2017
0127781
Create xfy007学习心得 (#2428)
stefanxfy Nov 2, 2017
4a822b0
study from liaoxuefeng. (#2427)
lilamei171023 Nov 2, 2017
cb9d5a2
add shujuku (#2426)
zhcjie Nov 2, 2017
09a06ed
add alearngit_huang (#2424)
EdisonHHH Nov 2, 2017
39f9c86
thanks to liao (#2422)
Yinyuecheng Nov 2, 2017
da63d48
learngit (#2419)
1172426418 Nov 2, 2017
421a198
testing PR (#2415)
nicole945 Nov 2, 2017
a308777
pull test (#2416)
Mactarvish Nov 2, 2017
9e2fb28
add 12345.txt (#2417)
Q1571962830 Nov 2, 2017
b56a1cb
我的学习心得---Dummkopf.txt (#2418)
ddummkopfer Nov 2, 2017
9cc6cd7
Create git学习心得 (#2420)
zhushaoxin Nov 2, 2017
4870192
Update 0314.txt (#2421)
superpest Nov 2, 2017
a9d43ac
学习git利器 (#2411)
Ghstart Nov 2, 2017
a67f3ba
test pull (#2413)
MagicEthan Nov 2, 2017
cd455a8
up
wangtian10 Nov 7, 2017
884dd03
fork后创建文件
wangtian10 Aug 26, 2020
912e4ac
谭敏创建fork
wangtian10 Aug 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions $20170411
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
My pull test
Thank you
!
hello
hello,are you OK ?
7 changes: 7 additions & 0 deletions - -Mr. liao 您好,兰林书- -.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
廖老师,您好
上善若水,水善利万物而不争
明白四达,能无知乎?
i am your new fan bobo

学生:兰林
七星龙井
1 change: 1 addition & 0 deletions - -讲得太好了!帅呆了!.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
谢谢廖老师!讲的太好了!帅呆了!~~
4 changes: 4 additions & 0 deletions - 真的很感谢~.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
真的很感谢廖老师~
看到这么多同学的反馈与感谢我都觉得还是蛮壮观的~
有没有可以一起交流的小伙伴可以互相关注github啊 查看这条的提交者应该就可以了吧
祝老师和同学们以后的每一天都开开心心~测试!!!
5 changes: 5 additions & 0 deletions - 通俗易懂,言辞幽默,非常感谢 -
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
让我试试pull, 接收吧 不枉我学习到那么晚 哈哈


我也试一下
感谢老师!
4 changes: 4 additions & 0 deletions --见字如面.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
真的很感谢廖老师~
看到这么多同学的反馈与感谢我都觉得还是蛮壮观的~
有没有可以一起交流的小伙伴可以互相关注github啊 查看这条的提交者应该就可以了吧
祝老师和同学们以后的每一天都开开心心~测试!!!
151 changes: 151 additions & 0 deletions .000
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
工作区 -> git add -> 暂存区 -> git commit -> 版本库 -> git push -> 远程仓库

版本库HEAD表示当前版本,上一个版本HEAD^,上上一个版本HEAD^^.......

<<<<<<< HEAD

=======
>>>>>>> 2e3ba62650634f2f0a08f9d964b88c846a00c991
配置本机git
git config --global user.name "abcd"
git config --global user.email [email protected]

git连接自己的github
第一步:创建SSH_key: ssh-keygen -t rsa -C "[email protected]",
创建成功后.ssh文件下的id_rsa是私钥,id_rsa.pub是公钥
第二步:登陆GitHub,打开“Account settings”,“SSH Keys”页面
第三步:添加SSH key,用公钥

一切从版本库同步到远程的git都有uname和pword操作push
其他都是从本地直接切换操作

一定要从自己的账号下clone仓库,这样你才能推送修改。先fork再clone

git init 初始化此文件夹为版本库
git add readme.txt 将文件从工作区添加到暂存区
git checkout -- readme.txt 撤销工作区文件的修改
git commit -m "this is commit" 将文件从暂存区提交到版本库
git reset HEAD 从暂存区回退到工作区
git diff 查看工作区文件修改前后的差异
git status 查看工作区与暂存区的文件修改状态
git log 查看提交日志
git log --pretty=oneline
git reset --hard HEAD^ 回退到上一版本
git reflog 查看命令历史
git remote add origin url 为远程Git更名为origin
git push -u origin master 首次推送此次修改
git push origin master 然后可以不加-u
git clone url 克隆一个远程库到本地
git branch page 创建新分支
git checkout page 选择新分支
git checkout -b page 相当于上面两条一起
git branch 查看分支
git merge page 合并分支page到master,checkout到master分支
git merge page --no-ff -m "plain" 禁用Fast forward
git branch -d[D] page 删除分支page,删除前先切换到master分支[D强行删除]
git push origin :page 删除远程分支page
cat read.txt 查看文件内容(冲突)
git log --graph 查看分支合并情况
git log --graph --pretty=oneline --abbrev-commit 查看最近分支合并情况
git stash 隐藏当前工作区
git stath list 查看隐藏的工作区
git stash apply stash{0} 恢复隐藏的工作区,不会删除stash
git stash drop 删除stash
git stash pop stash{0} 恢复隐藏的工作区,一并删除stash
git remote -v 查看远程库信息
git pull 拉取最新分支
git branch --set-upstream branchName origin/branchName 指定本地与远程之间的链接
git tag <name> 可以打一个新标签
git tag 查看所有标签
git tag name id 打标签
-a指定标签名,-m指定说明文字
git show <tagname>可以看到说明文字


有时git clone下来会出现很多branch,更麻烦的是如果主分支没代码那你就只能看到.git目录了。如下面的这个:

$ git clonegit://gitorious.org/android-eeepc/mesa.git


  发现本地就只有一个.git目录,那么这个时候就需要checkout了。

  进入你的本地目录,如这个是mesa,利用

$ git branch –r

  查看branch信息(当然你也可以用git show-branch查看,不过有时并不好用),获得如下branch信息:

origin/android
origin/mesa-es
origin/mesa-es-dri

  此时我们需要的是android分支的代码,那么此时就要进行checkout了。
$ git checkout origin/android

  你再看你的目录(mesa)下是不是有了代码了?其它的branch同理。





git clone默认会把远程仓库整个给clone下来; T2 {0 t, l+ @0 U" C2 g) i
但只会在本地默认创建一个master分支
如果远程还有其他的分支,此时用git branch -a查看所有分支:

* master
remotes/origin/HEAD -> origin/master " A4 u3 ~+ n5 u5 \7 R" Z( d# J
remotes/origin/master
remotes/origin/python_mail.skin
remotes/origin/udisk
remotes/origin/vip
复制代码
能看到远程的所有的分支,如remotes/origin/python_mail.skin e Y' X9 ~, f1 |
可以使用checkout命令来把远程分支取到本地,并自动建立tracking

$ git checkout -b python_mail.skin origin/python_mail.skin) X& X: I3 Q; ?9 j9 T5 @; J/ M
Branch python_mail.skin set up to track remote branch python_mail.skin from origin.; i/ B! ^3 J# u6 a( }. I$ M- i
Switched to a new branch 'python_mail.skin'
复制代码
或者使用-t参数,它默认会在本地建立一个和远程分支名字一样的分支
折叠展开复制代码

$ git checkout -t origin/python_mail.skin
复制代码
也可以使用fetch来做:

$ git fetch origin python_mail.skin:python_mail.skin
复制代码
不过通过fetch命令来建立的本地分支不是一个track branch,而且成功后不会自动切换到该分支上- z) t: R4 p- s6 _2 d3 a
注意:不要在本地采用如下方法:

$ git branch python_mail.skin
$ git checkout python_mail.skin/ i8 z/ N: a% v/ Q: M
$ git pull origin python_mail.skin:python_mail.skin
复制代码
因为,这样建立的branch是以master为基础建立的,再pull下来的话,会和master的内容进行合并,有可能会发生冲突...

Git中从远程的分支获取最新的版本到本地有这样2个命令:
1. git fetch:相当于是从远程获取最新版本到本地,不会自动merge

git fetch origin master
git log -p master..origin/master
git merge origin/master

以上命令的含义:
首先从远程的origin的master主分支下载最新的版本到origin/master分支上
然后比较本地的master分支和origin/master分支的差别
最后进行合并
上述过程其实可以用以下更清晰的方式来进行:
git fetch origin master:tmp
git diff tmp
git merge tmp

从远程获取最新的版本到本地的test分支上
之后再进行比较合并
2. git pull:相当于是从远程获取最新版本并merge到本地
git pull origin master

上述命令其实相当于git fetch 和 git merge
在实际使用中,git fetch更安全一些
因为在merge前,我们可以查看更新情况,然后再决定是否合并
结束
1 change: 1 addition & 0 deletions .3qTeacherLiao.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
刚学会,来玩玩,
Binary file added .DS_Store
Binary file not shown.
Loading