OS_Lab0_实验报告
Lab0 实验报告一、思考题Thinking 0.1
执行命令 cat Untracked.txt 和 cat Stage.txt,对比两次运行的结果,体会 README.txt 两次所处位置的不同
git add之后README.txt添加到了暂存区
执行命令 cat Modified.txt,观察其结果和第一次执行 add 命令之前的 status 是 否一样,并思考原因。
这两个status不一样,Untracked.txt中显示README.txt是未跟踪的文件(Untracked). Modified.txt中显示此时README.txt是尚未暂存以备提交的变更(Modified)
原因:第一次add以前,新建的README.txt不在暂存区,是Untracked状态.。而随后进行了git add后变为Staged 状态,git commit后变为Unmodified状态,修改后就变为Modified状态,修改后尚未加入提交。
Thinking 0.2
add the file 对应 git add <filename>
文件状态从未跟踪到已暂存,表 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment