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

Development Tools Git Basics Getting Started With Git Committing Changes

Brandon Wall
Brandon Wall
5,512 Points

Using git On Ubuntu. git commit screen looks different

I'm following along on my Ubuntu virtualbox and after using git add README and then using git commit, the screen afterwards telling me to add a message for the commit looks different. It does not include the lines saying who the committer is like it does in the treehouse console. Is this because i'm the only user setup on my machine? His initial screen is 15 lines long where as mine says it's 7 lines long. It also does not display the line in parentheses saying use git rm --cached <file> to unstage. It's just bugging me a bit.

I also had to use the git config --global flag because it threw an error telling me to "Tell me who you are" asking me to config an email and username.

1 Answer

Jonathan Chua
Jonathan Chua
4,136 Points

Maybe you do need to save your username and email into git. Since git can be used to track multiple people working on the same project, it needs to know who is making a particular commit. If you type the command

git config --list

it should show your username and email in git if they have been set. In order to set them you can use the following commands.

git config user.name
git config user.email