Can't edit README.md in GitHub - github

I have just created a new repository in GitHub and I wanted to change the Readme file, however the "Commit Changes" button is just greyed out, as shown below.
As well as this, when I click on "Preview" to view how it would look with Markdown, nothing happens, it just stays on the "Edit File" tab. Why is this not working?

Try disabling adblockers. I found this post on github community I tried toggling my adblockers and found it was ghostery breaking the site.
Edit: Ghostery specifically breaks the page by blocking Adobe Experience Cloud. This can be resolved by either setting the github site as trusted or by enabling that tracker on the github site (as I've done).

Related

Cannot Edit in read only editor Codesandbox

I am trying to use codesandbox by importing the github repository. I am not able to edit the contents of the package.json file. It says cannot edit in ready only editor. How to solve this error?
step1: Ctrl+save
step2: Refresh the webpage from the web browser.
That's it. You are good to go now.
You can't even edit any other files for github repository. You can fork that codesandbox and then edit.
I also met that kind of situation and it worked after fork.
In my case, I just went back to the Dashboard, and re-opened the sandbox. Then I was able to edit it like usual. However, I did notice that the GitHub linkage was gone then.
If you go to the Dashboard in CodeSandbox you can re-open your code from there. After opening your code, click on the Github icon. You can see the option to Export to Github, and you can see how many changes you have made.
But if you open your code from the link on Github you will be in a read-only editor mode.
If this is the first time to open the code in CodeSandbox (for example, you are viewing somebody else's code) then you have to fork it in order to edit it.

How can i remove projects tab

Is it possible to remove the Projects tab like I can remove the issue tab? Because we don't really use the Projects tab , nor the issue tab.
According to this GitHub issue post it doesn't seem that it is possible to remove the projects tab just like the pull requests tab. Github should make a setting where you can definitely remove this tab, as many repositories aren't using this new feature Github got going on. I'm going to contact GitHub contact page shortly to get ahold of this issue.
As of 10/28/2016
They said this will be considered as one of the top priorty for Github Developers as said in thier statement:
Hi!
I have a question on how to delete the projects tab from your github repository. Is this possible? Can you guys implement this any time soon? I already have asked a question here about it : How can i remove projects tab , and there is also a github issue about it. If you can inform me more that will be helpfull :-)
This is not possible currently. Thanks for the suggestion though! I have added it to our list for our team to consider.
Thanks,
GitHub Staff
Sadly , as of right now its not possible to delete the project tab :( .
Note: since March 24th, 2017, this seems possible.
See "Disabling projects" from Ayman Nadeem (aymannadeem):
Users with admin privileges on a repository can disable Projects by navigating to that repository's settings and unchecking the "Projects" box.
Similarly, organization owners can disable Projects by navigating to an organization's settings and clicking "Projects" in the sidebar.
On this page, unchecking the "Enable Projects for the organization" box will disable organization-wide Projects, and unchecking the "Enable Projects for all repositories" box will disable Projects for all repositories in the organization.
Disabling Projects:
hides the Projects tab from the repository and organization navigation,
removes Projects from Issue and Pull Request sidebars, and
hides Project-related events from Issue timelines.
Disabled Projects are also inaccessible via API requests.

Rename button disabled for github repository

Such a simple thing as renaming a GitHub repository via its settings page. Now the button labeled "Rename" is disabled when I try different new names. Any clue what is happening?
Solved. The issue was due to my browser not being supported. There was not errors nor alerts, so I could not figure this out at first. I could rename the repo using a different web browser.

How do I change an organization's repository description on GitHub? [duplicate]

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?
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:
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:
Upon doing so, a popup will appear where the description, website, topics, and homepage settings can be configured:
Click on the Edit that comes when you hover your mouse over the description and project url section
When you hover over the existing description, an Edit button will appear at the far left.
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.
Click on the gear icon like in the image, and then change your repository description
Click "Save Changes"
1.Go into your repository.
2.On the right side About and symbol of setting.
3.Click on the setting.
4.You get Edit repository details.
5.you can change details.
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
press the Gear Button and you will see the description to update it or delete it
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.

How do you change a repository description on GitHub?

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?
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:
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:
Upon doing so, a popup will appear where the description, website, topics, and homepage settings can be configured:
Click on the Edit that comes when you hover your mouse over the description and project url section
When you hover over the existing description, an Edit button will appear at the far left.
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.
Click on the gear icon like in the image, and then change your repository description
Click "Save Changes"
1.Go into your repository.
2.On the right side About and symbol of setting.
3.Click on the setting.
4.You get Edit repository details.
5.you can change details.
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
press the Gear Button and you will see the description to update it or delete it
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.