285

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?

random
  • 9,774
  • 10
  • 66
  • 83
Deets McGeets
  • 6,108
  • 7
  • 29
  • 38

10 Answers10

212

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

Noitidart
  • 35,443
  • 37
  • 154
  • 323
  • 8
    For a github newcomer like me, this was the most confusing accepted solution I've ever seen. According to me, 1) Hovering (where?) doesn't do anything related at all. 2) The addon on the screenshot is unrelated. I bet the screenshot intends to point out the "- Edit" suffix, which acts as a button. It's obvious enough that newcomers wouldn't go searching and land on this question, so the reason you did land here, is: 3) It's not always visible, as noted by Sergio in the comment above. It appears only after adding to the initially created repository (or something like that). – Stein Jan 07 '16 at 00:28
  • Thanks @Stein if you can modify that screenshot and update that would be nice. Maybe blur out the text, and draw an arrow at the "Edit" – Noitidart Jan 07 '16 at 03:55
  • Sure @Noitidart, that new image is a splendid way to eliminate one source of confusion. – Stein Jan 07 '16 at 15:40
  • 3
    If you don't see it, make sure the account you are logged in with can contribute to that repo. – Noumenon Jun 29 '16 at 15:52
  • 2
    Which tools did you use to create that video before uploading to imgur? – FiringBlanks May 21 '18 at 04:43
  • 1
    @FiringBlanks I used Camtasia Studio – Noitidart May 21 '18 at 16:22
  • 3
    The appearance has changed again. Look for a settings gear at top right, as mentioned in other answers. – Jeff Learman Oct 14 '21 at 17:57
119

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

  • 25
    Watch out: you can only get to this *if you have 1 or more files* in your repo! – kasimir Sep 07 '20 at 15:02
  • 1
    @kasimir - well, yeah, kind of stayed the same, the [other answer here](https://stackoverflow.com/a/38032597/11407695) is still correct in that regards. – Oleg Valter is with Ukraine Sep 07 '20 at 16:31
  • 3
    yep, that's why I upvoted that one :-) Above answer + screenshot is spot on - provided you have one or more files in your repo, which I only figured out when I read the answer below. – kasimir Sep 08 '20 at 18:07
  • 1
    @kasimir - I think editing empty repo description and metadata is not that useful, *but* I agree that it would certainly be nice to have - after all, why should it depend on having files in a repo? Something tells me this is an oversight when changing the legacy UI (after all, the empty repo layout did not change much) – Oleg Valter is with Ukraine Sep 08 '20 at 18:33
  • 5
    in my case, I was setting up some empty repos for other developers and tried to convey the purpose of each repo in the description. However, I made mistake (used the same description twice) and couldn't correct it, so that made it confusing for the devs. I then had to put a dummy file in there to correct my mistake, which did not provide the best user experience... – kasimir Sep 10 '20 at 07:20
  • @kasimir - thank you for sharing your use case for empty repositories. Although I do think that even template repositories should contain at least a license file or a directory structure, admittedly, the inability to edit *metadata* if there is no *data* would not be my choice of user experience, I agree. – Oleg Valter is with Ukraine Sep 11 '20 at 00:59
  • 1
    Why is it not possible to describe a repo on the cmd and push it to github, and they do kungfu and put it to the right place? I still do not like guis.. – Timo Dec 04 '20 at 19:17
105

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

enter image description here

manojlds
  • 290,304
  • 63
  • 469
  • 417
  • 48
    They need to change this. The fact I had to turn to Stack Overflow for the answer is shocking. Thanks – Adam Waite Nov 05 '12 at 12:13
  • 26
    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. – Sergio Feb 08 '13 at 15:50
  • Ya that was the most confusing part, I was creating a bunch of empty repos for moving a few projects over > – Clarence Liu Mar 24 '14 at 22:34
56

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

enter image description here

user229044
  • 232,980
  • 40
  • 330
  • 338
50

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.

Jeremiah Shore
  • 520
  • 4
  • 6
  • 47
    This is a completely messed up user experience. There is absolutely no reason why the repository description would not just be on the repository Settings page. – Luke Oct 29 '16 at 05:47
  • 3
    /\ I can't stress that enough. – Marc.2377 Nov 05 '19 at 07:14
18

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"

ADITYA DAS
  • 340
  • 2
  • 6
  • Can you please include a description of the steps outlined by your images? It may not be understandable for everyone (for example, think of screenreaders) – aaossa Feb 28 '22 at 22:54
  • 1
    Please note that this gear icon is NOT visible if the repository is empty / has no commits. – hotdogsoup.nl May 11 '22 at 13:17
11

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

MRUNAL MUNOT
  • 395
  • 1
  • 5
  • 18
5

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 --description="your_description"

# Update the description of the repository
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
5

As of 2023, Github UI has been updated again and the option is now located in the top-right corner of a repository page. Click on the Gear Icon next to About, and a new modal will pop up where you can change the description of the repository.

enter image description here

Hyder B.
  • 10,900
  • 5
  • 51
  • 60
3

from this Gear Button

press the Gear Button and you will see the description to update it or delete it