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

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,021 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,021 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