Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools

Aaron HARPT
Aaron HARPT
19,845 Points

Using Git with the command line

I am having trouble saving text to my README file using the treehouse command line. Any suggestions would be appreciated.

Greg Kaleka
Greg Kaleka
39,018 Points

Hi Aaron. Can you be more specific? What isn't working, compared to what the teacher does in the video?

2 Answers

Greg Kaleka
Greg Kaleka
39,018 Points

Hey Aaron,

To save an edit in nano, you just exit and confirm you want to save (note - this is off the top of my head, so watch your prompts carefully in case I missed something):

  • Ctrl+X to exit
  • Y to confirm you want to save (see the message at the bottom of the console)
  • Enter to confirm you want to save it as README.txt

Let me know if you get that to work!

Best,

Greg

Aaron HARPT
Aaron HARPT
19,845 Points

Mr. Kaleka-

I am attempting to add to and save text to a README file using the nano text editor on the treehouse console. I am not sure how to save changes that I make to my README file in the nano text editor.

Thanks

Aaron