6
2
I learning how to use git on a Mac and I'm trying to add a file in one of my branches by using the "cat > " command. The problem I'm having is that I want to end editing the file in the terminal but I do not know how to close it. I'm guessing that I need to change "modes" for lack of a better term. How do I proceed?
I wouldn't rely on it all the time, but I don't see a problem doing that if all you want is to create a 2- or 3-line script. That's easier than firing up a text editor. – Charles Burge – 2016-11-30T22:51:07.513
3
cat is not a text editor! Are you trying to be a masochist? http://xkcd.com/378/
– Lie Ryan – 2010-10-11T22:57:25.970