在 git 中更改存储库描述
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15406274/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Changing repository description in git
提问by Chesnokov Yuriy
I'd like to change repository description of the project I'm working on but "Edit" button does not appear in GitHub web site.
我想更改我正在处理的项目的存储库描述,但“编辑”按钮未出现在 GitHub 网站中。
I use GitHub for Windows and provided shell.
我在 Windows 上使用 GitHub 并提供了 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?
虽然网站上存在描述.git\description
文件具有默认内容,但\description
文件root
夹中不存在文件。如果项目的描述存在于 GitHub 上,那么项目的描述存储在哪里?
I changed .git\description
but the changes are not visible to the git status.
我更改了,.git\description
但更改对 git 状态不可见。
How to change the project description without creating \description
file in the root
folder or creating links to its .git\description
version?
如何更改项目描述而不\description
在root
文件夹中创建文件或创建指向其.git\description
版本的链接?
回答by manojlds
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.
该.git\description
文件仅在 Git-Web 程序中使用。Github 甚至不关心它,您在本地 git 存储库中输入的描述对您来说仍然是本地的,永远不会传输到远程存储库。
To change project description on Github, look here: How do you change a repository description on GitHub?
要更改 Github 上的项目描述,请查看此处:如何更改 GitHub 上的存储库描述?
回答by poke
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.
您只能更改您拥有的项目的 GitHub 存储库描述。简单的读/写访问不足以改变这一点。您基本上需要与访问项目的管理部分所需的权限相同的权限。
回答by Jorge Israel Pe?a
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:
来自链接 manojlds 的评论粘贴:
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
显然,如果项目不为空,则描述只会出现在项目的详细信息中!。我必须先提交一些东西才能改变它
回答by Dustin C
I wasn't able to edit the description of my project either. I had committed code and I owned the repo because I created it on a different day. However, I didn't realize I wasn't signed in to GitHub while I was viewing the repo. Once I signed in I saw the edit button.
我也无法编辑我的项目的描述。我已经提交了代码并且我拥有这个 repo,因为我在不同的日子创建了它。但是,我没有意识到在查看 repo 时我没有登录到 GitHub。登录后,我看到了编辑按钮。