Changing repository description in git

落爺英雄遲暮 提交于 2019-12-12 10:44:24

问题


I'd like to change repository description of the project I'm working on but "Edit" button does not appear in GitHub web site.

I use GitHub for Windows and provided shell.

Although description is present on web site .git\description file has default contents and \description file is absent in root folder. Where is the description of the project is stored then if it is present on GitHub?

I changed .git\description but the changes are not visible to the git status.

How to change the project description without creating \description file in the root folder or creating links to its .git\description version?


回答1:


You can only change the GitHub repository descriptions of projects which you own. Simple read/write access is not enough to change that. You basically need the same privileges as you need to access the administration section of a project.




回答2:


The .git\description file is only used in the Git-Web program. Github doesn't even bother about it, and the description that you enter in your local git repo remains local to you and will never be transmitted to the remote repo.

To change project description on Github, look here: How do you change a repository description on GitHub?




回答3:


The edit button should show up when you move your mouse over the area where the description would show up.

A comment from the link manojlds pasted:

apparently the description only appears in the details of the project if the project is not empty !. I had to commit something before being able to change it



来源:https://stackoverflow.com/questions/15406274/changing-repository-description-in-git

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!