How To Make Changes On A Commit In A Pull Request Directly On GitHub's Website

Ayu is a tech blogger, open source contributor & maintainer, and tech community enthusiast based in the Netherlands. She loves photography and iced coffee!
Search for a command to run...

Ayu is a tech blogger, open source contributor & maintainer, and tech community enthusiast based in the Netherlands. She loves photography and iced coffee!
If you enjoy the VS Code experience Ayu, you can still edit the file on GitHub but with the VS Code editor. All you need to do is press the <kbd>.</kbd> key and voila!
Thank you, Nick! I heard about this, but I haven't tried it out!
Can you use the terminal as well here for git commands? I heard that you can't use it yet, but I'm not sure about the latest news.
Ayu Adiati you can't use the terminal as it's not GitHub Codespaces, but you can use the built-in Git UI.

Hi friends ๐, I've been writing tech blog posts for a few years now. If you don't know me yet, English is my second language. My mother tongue is Indonesian, and I'm also surrounded by Dutch every da

I frequently receive messages from enthusiastic contributors who have completed 2 or 3 high-quality pull requests (PRs) in just 1 month. Theyโre proactive, their work is top-tier, and theyโve handled

A few months ago, I shared a story about building an automated open source portfolio using just my smartphone and an AI assistant while on vacation. My main goal was to stop the "spreadsheet struggle"

Recently, I read Bekah Hawrot Weigelโs blog post, "When 'Local' Went Global: The Pandemic Era of International Communities." As someone active in many online communities, I found it a bit sad, but I agree with her points and think they apply to open ...

Hacktoberfest is almost over. How has your contribution journey been so far? Are you confident about contributing to open source projects, or are you still struggling to find your way? If you're new to open source and still feel overwhelmed, that's c...

Hello Fellow Codenewbies ๐,
Not long ago I worked on an issue on a markdown file. After I finished working on it, I pushed a commit and created a pull request.
Then I realized that I missed something, and had to make a fix.
Panicking, my first thought was to close the pull request. Then make the changes locally, push the new commit and create a new pull request.
But in the end, I didn't do that. After asking around, I got an answer. There is a way to make changes directly on GitHub's website.
Also, we don't have to close and open a new pull request whenever we want to fix something and commit the changes.
Go to the pull request
On the repo on GitHub, click the Pull request tab, and open your pull request.

Go to the (last) commit
Under the title of your pull request, there are several tabs. Click on the commits tab and open the commit.
If you have several commits, open the last commit.

Edit file
Click the ... (three dots) button under the commit's message on the right side. It will give you a drop-down, then click Edit file. Now you can make your changes there.

Commit changes
Now you're done with making the changes. Scroll down to the bottom of the page until you see Commit changes input. Write your commit message, and choose one of the two committing options.
your-project branch.Then click the Commit changes button.

And that's it! Now you have made the changes with a new commit ๐.
You can make changes to any type of file directly on GitHub. But unlike markdown, you cannot preview your changes on GitHub.
If you need to run tests and preview the project from files that are not markdown, the best way is to make changes locally. Then push the new commit.
Thank you for reading!
Last but not least, you can find me on Twitter. Let's connect! ๐