Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion Adding Changes to a Project on GitHub

Christopher Mlalazi
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Christopher Mlalazi
Front End Web Development Techdegree Graduate 17,305 Points

Github Edit Commit Description

I hope my question is clear. I have just made committed an edit of my personal profile page on Github, but I wanted to change/edit the text describing it how do I do that I can’t see any eat button?

2 Answers

Seth Kroger
Seth Kroger
56,413 Points

You'll need to use the "git commit --ammend" command and possibly force a push. GitHub has instructions on how to do this in there help pages here: https://help.github.com/articles/changing-a-commit-message/

Seth Kroger
Seth Kroger
56,413 Points

From the command shell you would often set a message like this: git commit -m "Message here" to skip using the console text editor. To change the most recent message would be the command: git commit --amend -m "New message here" If you've pushed the change to GitHub from your local repo, you would then need to do the command: git push --force your-branch-name-here