chenzhihao-mac:gitlearning chenzhihao$ cat readme.md Hello world! Git is a very important Code Management System!
修改该文件,添加一个单词very
1 2 3 4
chenzhihao-mac:gitlearning chenzhihao$ vi readme.md chenzhihao-mac:gitlearning chenzhihao$ cat readme.md Hello world! Git is a very very important Code Management System!
将修改提交到暂存区
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
chenzhihao-mac:gitlearning chenzhihao$ git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: readme.md no changes added to commit (use "git add" and/or "git commit -a") chenzhihao-mac:gitlearning chenzhihao$ git add readme.md chenzhihao-mac:gitlearning chenzhihao$ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: readme.md
chenzhihao-mac:gitlearning chenzhihao$ git init Initialized empty Git repository in /Users/chenzhihao/Documents/Study/gitlearning/.git/
执行完git init命令后会得到提示Initialized empty Git repository in /Users/chenzhihao/Documents/Study/gitlearning/.git/,即在对应目录初始化了一个空的Git仓库。 我们使用如下命令,即可看到在我们的Git仓库本地根目录下存在一个隐藏的.git文件夹
1 2
chenzhihao-mac:gitlearning chenzhihao$ ls -a . .. .git
接下来在仓库目录下创建一个文件,并写入一些内容后使用cat命令查看文件内容
1 2 3 4 5
chenzhihao-mac:gitlearning chenzhihao$ touch readme.md chenzhihao-mac:gitlearning chenzhihao$ vi readme.md chenzhihao-mac:gitlearning chenzhihao$ cat readme.md Hello world! Git is a very important Code Management System!
针对全限定类名,例如类:java.util.Date ,我们可以使用 java.util.Date date = new java.util.Date() 来构造一个对象,但是这样很不爽啊,前缀那么长,虽然说java.util这个包是Date这个小弟的老大,但不管当前Java文件中是否存在同名小弟都要把大哥的名带上,属实有点啰嗦。这时候这帮开发者又找JVM开了个会,说:“我们能不能在一个Java文件里只声明有哪些大哥的小弟在,即先标记好这个小弟的大哥是谁,之后每次使用的时候直接用小名就可以了”,此次会议开的特别成功,经相关部门起草、领导层层审批,最终决定使用import关键字在类文件的头部一次性导入某包内一个或一组类文件,这样即便有同名,那么直接使用全限定类名就好了,那也很省事儿。
Failed authorization procedure. chenzhihao.cc (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Error getting validation data
首先检查Nginx配置文件是否正确
关闭防火墙
2. 配置好为何无法访问?
没有什么是重启一下Nginx解决不了的,重启后肯定会有报错
3. 为什么我无法重新注册?
Attempting to renew cert (域名) from /etc/letsencrypt/renewal/域名.conf produced an unexpected error: Problem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping.