git

<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`等。                                        git

相关文章

Git安装和使用 Git安装和使用 刚开始用git的小白适用,,转自...
fatal: remote origin already exists.解决方法 第一个问题g...
git常用命令(二)查看历史记录 git log [--pretty=oneline]...
git之如何把本地文件上传到远程仓库的指定位置 git专栏收录该...
代码规范之 lint-staged 在代码提交之前,进行代码规则检查能...
方法:1、文件没有git操作时用“git checkout--文件”命令还...