How do you change a repository description on GitHub?

Github

Github Problem Overview


When you create a repository on GitHub, you can optionally create a description of the repository. Unfortunately, I wrote a description that no longer adequately describes the code in the repo.

How do I change the repo description?

Github Solutions


Solution 1 - Github

They changed the looks slightly, the "Edit" button is seen when on the repositories main page, which is the "Code" tab. Here is a screencast/animated-screenshot:

enter image description here

Solution 2 - Github

Click on the Edit that comes when you hover your mouse over the description and project url section

enter image description here

Solution 3 - Github

As of 2020, if you chose the new design in feature preview, meta-information about the repository can be changed by clicking on a cog icon in the right-hand side menu's "About" section:

2020 design: edit cog

Upon doing so, a popup will appear where the description, website, topics, and homepage settings can be configured:

2020 design: edit popup

Solution 4 - Github

When you hover over the existing description, an Edit button will appear at the far left.

enter image description here

Solution 5 - Github

Just in case anyone else has a similar issue as me...

You cannot edit the description until one or more files are committed and pushed. In my specific case, I created the repository from IntelliJ IDEA and accidentally filled the description with text I had intended for the first commit. However, I didn't actually commit or push any files.

I went to the repositories page on the GitHub website, where I could see the repository and its description from the repositories page. However, when viewing the individual repository page, the description would not appear and suggestions for setting up the project were the only content displayed. There is no clear indication that you cannot edit the description until a file is uploaded, but once you have done so, the description is clearly displayed and with it a link to edit.

Solution 6 - Github

1.Go into your repository.

2.On the right side About and symbol of setting.

About and Setting

3.Click on the setting.

4.You get Edit repository details.

5.you can change details.

Edit Description

Solution 7 - Github

You can do so directly from command-line, without having to interact with GitHub website.

Since the GitHub CLI gh 2.4.0, you can use gh repo edit:

gh repo edit d, --description <string>

# Update the description of the repository

Solution 8 - Github

enter image description here

Click on the gear icon like in the image, and then change your repository description

enter image description here

Click "Save Changes"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDeets McGeetsView Question on Stackoverflow
Solution 1 - GithubNoitidartView Answer on Stackoverflow
Solution 2 - GithubmanojldsView Answer on Stackoverflow
Solution 3 - GithubOleg Valter is with UkraineView Answer on Stackoverflow
Solution 4 - Githubuser229044View Answer on Stackoverflow
Solution 5 - GithubJeremiah ShoreView Answer on Stackoverflow
Solution 6 - GithubMRUNAL MUNOTView Answer on Stackoverflow
Solution 7 - GithubVonCView Answer on Stackoverflow
Solution 8 - GithubADITYA DASView Answer on Stackoverflow