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 trialjohndoe93c
2,555 PointsGit Bash (Text Editor)
I was trying to follow along with the Git Basics videos and after installing the Git program i tried using the text editors mentioned (notepad and nano) but when i try to do so it says the command is not found. I'm not completely sure what the problem is of if i just need to install another program so any help would be greatly appreciated.
3 Answers
Michael Hulet
47,913 PointsIt sounds like you're using Windows. As far as I know, you must launch Notepad like you normally would (through the GUI), and nano isn't available on Windows (at least not built in.. It may've been ported by now, but I don't know), as it is primarily a program for a UNIX/UNIX-Like SHell
Ken Alger
Treehouse TeacherI would recommend changing your text editor away from Notepad. There are several free ones available that are far better for programming in general. Perhaps not necessary for the GIT BASH examples, but something like gedit or Notepad++ for Windows has, in my experience, been extremely helpful in programming.
Aaron Rosario
1,840 PointsYou can use vi which comes with gitbash. Just remember these two vi commands, when you open a file, hit 'I' to insert. When you are done making changes hit ESC, then type :wq hit enter and it's as close to pico/nano/edit as you can get. If you just want to view a file you can use vi and just use the :q command to exit vi.
Alex Sidlinskiy
9,975 PointsThis is very helpful Thanks.
Jude Molloy
7,470 PointsThanks!
johndoe93c
2,555 Pointsjohndoe93c
2,555 PointsThatβs actually the problem I keep facing, I try to start notepad through GUI but I only get the error message and I don't know why.