git 怎么刷新readme.md文件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git 怎么刷新readme.md文件相关的知识,希望对你有一定的参考价值。
参考技术A 好的readme,如何才算好,一定要有高逼格,好吧,中文不够国际化,一定要有英文版本首先logo很重要放在最上面,如meolu/walle-web · GitHub,然后起一个最耍帅的名字,如meolu/walden · GitHub:Walden 最适合东半球同学使用的文档框架。
最重要的,一定要有一个官方主页介绍,不求漂亮、高大上,至少做得大方得体,瓦尔登官方主页:Walden 瓦尔登。最好为它申请一个专业的域名,如瓦力官方主页:walle-web.io,.io域名比.com贵太多了:( 不过,好马配好鞍,谁让它是我的理想寄托,值!
介绍当然是少不了,这块可高大上,可幽默,看个人文笔了,目前我还没想好一套超酷的,先等着。
对于技术的readme,一定要各种icon:travis、scrutinizer、packagist这些标配
至于什么安装,快速开始,功能列表这不啰嗦了,然后就是尽量给个截图或者gif,吸引兴趣,让用户看到完成之后的样子。本回答被提问者采纳
删除分支上的文件README.md
Administrator@USER-20200307HH MINGW64 /f/Git (master) $ rmdir README.md rmdir: failed to remove ‘README.md‘: Not a directory-------------------------------------->删目录的命令
Administrator@USER-20200307HH MINGW64 /f/Git (master) $ rm -rf README.md
Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git status On branch master Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory)--------------------------------->这个是撤销删除了 deleted: README.md no changes added to commit (use "git add" and/or "git commit -a") Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git add README.md Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git status On branch master Changes to be committed: (use "git restore --staged <file>..." to unstage) deleted: README.md Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git commit -"clear" fatal: could not lookup commit lear-------------------------------------------------------->所以这样做的是错的。删除一个应该用git rm Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git status On branch master Changes to be committed: (use "git restore --staged <file>..." to unstage) deleted: README.md Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git restore --staged README.md---------------------------------------------------------------> 把删除撤销了 Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git status On branch master Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) deleted: README.md no changes added to commit (use "git add" and/or "git commit -a")
现在正真才是在干删除的事情:
Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git rm README.md rm ‘README.md‘ Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git status On branch master Changes to be committed: (use "git restore --staged <file>..." to unstage) deleted: README.md Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git commit -m"trash" [master 4b0a1dc] trash 1 file changed, 1 deletion(-) delete mode 100644 README.md Administrator@USER-20200307HH MINGW64 /f/Git (master) $ git status On branch master nothing to commit, working tree clean
以上是关于git 怎么刷新readme.md文件的主要内容,如果未能解决你的问题,请参考以下文章