We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e914da commit 68480f4Copy full SHA for 68480f4
note/git教程.md
@@ -80,6 +80,14 @@ git status
80
git reset --hard commit_id
81
```
82
83
+## 查看
84
+```
85
+git status
86
+git status -s
87
+git log
88
89
+
90
91
## 分支管理
92
93
查看分支:
@@ -106,6 +114,18 @@ git checkout -b dev
106
114
107
115
## .gitignore
108
116
117
+首先,在你的工作区新建一个名称为.gitignore的文件。
118
+**然后,把要忽略的文件名填进去,Git就会自动忽略这些文件。**
119
120
+不需要从头写.gitignore文件,GitHub已经为我们准备了各种配置文件,只需要组合一下就可以使用了。
121
+所有配置文件可以直接在线浏览:https://github.com/github/gitignore
122
123
+比如说,不想把a.out文件加入git,那么在.gitignore的文件里面的内容是:
124
125
+*.o
126
+*.out
127
128
109
129
## 参考
110
130
111
131
https://gist.github.com/285571052/72fe4e85290d170b9de4634b6ad8c082
0 commit comments