Is there a way to change the name of a gist (github) ?, apparently it is ordering the files of the gist in alphabetical order, an naming the gist according to the file that appears first.
相关问题
- How to add working directory to deployment in GitH
- Upload file > 25 MB on Github
- Can I input Git command in Android Studio IDE?
- Source tree not able to push
- Git lost local commited files after git checkout
相关文章
- java开发bug问题:GitHub授权登录无法获取授权账号信息?
- Is there a Github markdown language identifier for
- “no implicit conversion of Integer into String” er
- GitHub:Enterprise post-receive hook
- git commit directory
- travis-ci setup releases with --github-token
- git commit gives error: empty commit set passed
- github部署的网站,引用的js文件报404
What I do is creating a first file with leading underscore example : '_simple gist.md' and set it's type as markdown so it also serves as description of my gist .. after reading this post, I will prefix a leading space.
If you edit the Gist an input box with the filename appears. That can be used to change the filename.
An even better way is to use an ! (exclamation) in front of the name of the file that you always want to be the first in the order. That way you avoid having to add a space everytime you edit the file, as well as adding a tilde ~ to all the remaining files which can be an arbitrary long list.
Considering the order of files within a gist is asciibetical, you can try and add one file in uppercase.
That file will come before any other and will define the name of your gist.
Note that it won't change the url of said gist, as explained in "Namespaced Gists".
My gist contained a
.gitignore
which sorts above a leading underscore. I ending up using two leading periods: ..FutureProcessorWithShinyExample.mdEven better, you can add a file with a leading space in its name. It's virtually invisible and gives you more freedom when choosing the title and names for the files: