git
发布时间:2020-12-14 16:36:55 所属栏目:百科 来源:网络整理
导读:table class="text" tr class="li1" td class="ln"pre class="de1"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
<table class="text"> |
<tr class="li1">
<td class="ln"><pre class="de1">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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
$ git --help
$ man git-
?
$ git init
?
$ git add *.c
$ git add LICENSE
$ git commit -m 'initial project version'
?
$ git clone https://github.com/libgit2/libgit2
?
$ git clone https://github.com/libgit2/libgit2 mylibgit
?
$ git status
On branch master
nothing to commit,working directory clean
?
$ echo 'My Project' > README
$ git status
On branch master
Untracked files:
? (use "git add ..." to include in what will be committed)
?
? ? README
?
nothing added to commit but untracked files present (use "git add" to track)
?
$ git add README
?
$ git status
On branch master
Changes to be committed:
? (use "git reset HEAD ..." to unstage)
?
? ? new file: ? README
? ?
?$ git status
On branch master
Changes to be committed:
? (use "git reset HEAD ..." to unstage)
?
? ? new file: ? README
?
Changes not staged for commit:
? (use "git add ..." to update what will be committed)
? (use "git checkout -- ..." to discard changes in working directory)
?
? ? modified: ? CONTRIBUTING.md
? ?
? ?
?$ git status
On branch master
Changes to be committed:
? (use "git reset HEAD ..." to unstage)
?
? ? new file: ? README
?
Changes not staged for commit:
? (use "git add ..." to update what will be committed)
? (use "git checkout -- ..." to discard changes in working directory)
?
? ? modified: ? CONTRIBUTING.md
?
所谓的 glob 模式是指 shell 所使用的简化了的正则表达式。 星号(*)匹配零个或多个任意字符;[abc] 匹配任何一个列在方括号中的字符(这个例子要么匹配一个 a,要么匹配一个 b,要么匹配一个 c);问号(?)只匹配一个任意字符;如果在方括号中使用短划线分隔两个字符,表示所有在这两个字符范围内的都可以匹配(比如 [0-9] 表示匹配所有 0 到 9 的数字)。 使用两个星号(*) 表示匹配任意中间目录,比如`a/**/z` 可以匹配 a/z,a/b/z 或 `a/b/c/z`等。
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!