What to do if Aptana Stuido 3 stops allowing you to commit to git?

I had the following problem:

I had been working on a project and wanted to commit my changes to git. When trying to commit (clicking Commands > Commit), it would let me type a message and add the files, however when I click Commit, the box closes but it doesn’t actually commit anything.

I was using Aptana Studio 3, build: on Windows 8.

It doesn’t display any error messages, however after some investigation I was able to resolve this issue. It turns out that git didn’t know my email address or name, which meant I couldn’t commit.

I resolved this by doing the following:

1. Exit Aptana Stuido and then use windows explorer and find the projects folder.

2. Right click the folder and select “Git Bash”.

3. Set my email address and name by typing the following:

git config --global user.email "email@address.com"
git config --global user.name "Firstname Lastname"