GIT 1.8.0 after insert commit comment how to return to CLI
Leonidas Savvides
Ranch Hand
Joined: Jan 31, 2010
Posts: 397
posted
0
GIT 1.8.0
after commands in CLI (COMMAND LINE)
cd C:/Users/User/Documents/PhoneGap/trnotes
git init
git status
git add .
git commit // AFTER INSERT COMMIT's COMMENT WHAT PRESS TO RETURN to CLI and comment done?
It depends on the OS, I think. But in cases where you are entering multi-line input, you can terminate input by typing a single line with a "." in it. Like so:
If that doesn't work, try hitting ENTER twice. Or Ctrl-D, which in Unix/Linux server as an end-of-input signal.
Customer surveys are for companies who didn't pay proper attention to begin with.
It also depends on the editor that is configured for use with git. When a commit is missing a message, git opens up the configured editor where you are expected to write the commit message and close that editor when done. Take a look at the "core.editor" section here http://git-scm.com/book/en/Customizing-Git-Git-Configuration. I highly recommend reading all those chapters in "Pro Git" book. I've found it extremely useful when I was getting started with Git.
I think Git launched a copy of the vi editor program. Try hitting the "Esc" key, which should force the cursor to the bottom of the screen. Type ":wq" to write and quit. The semi-colon before the "w" is critical.
Note that you can select almost any editor program you want. Most version control systems use whatever the system environment variable named "EDITOR" is set to, and typically default to vi if it isn't set.
connectng 2 win PCs in local network if in one pc(USER-HP) i have a repo:
cd C:/Users/User/Documents/PhoneGap/trnotes
To connect with another pc and clone (both installed git bash) this is correct:
i must be able to write read from windows explorer to
User-HP@192.168.10.11:C:/Users/User/Documents/PhoneGap/trnotes fromUSER-PC pc that accept the clone??? for success??