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

How do you accept the file name?

I got to the part in the video where I typed "nano README", said "yes" to save the changes, and then he wants me to "accept the file name", but how do I do that? Whatever he does, he does pretty fast so I don't see what he did to move on to the next screen. Any help on this is greatly appreciated.

2 Answers

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

First of tell me what combination have you pressed after finishing editing file?

He presses Ctrl-X

And after that nano asks whether he wants to save modified buffer or not.

Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES)

And then he presses 'y'.

And changes are saved.

Then nano asks him whether he wants to change filename

File Name to Write : README

And he presses Enter to tell nano to leave filename README as is

As simple as that...

Now the question would be what "accept file changes" means? Could you be more specific on that?

Actually, I did do those steps. The problem was it wasn't taking me back to the command line at all. I did get one of the mentors from the "Code Louisville" program I'm in to help me out. He found some documentation that said you have to do "ctrl + o", "enter", then "ctrl + x" to get back to the command line. I don't know if it had anything to with being on a Windows 10 computer that caused that problem, but it seems to happen a lot since I have moved past this step, Sometimes, it doesn't work and. I am forced to close the console out completely, open it back up , navigate to where I was before, and then continue with next steps in the video.

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

Great that you fixed problem:)

I would advise you not to worry much about nano editor. It is used only in this course as far as I know.

So in your development studies you can choose other, that is more common to you.

You can also run all the programs locally, in all OS: Mac/Win/Linux there is console or Terminal.

May be you can ask for help your mentors as well. It should not be hard.

And if you installed git locally, then you can modify README file with whatever editor you like and run git commands on your computer.