windows - How can I prompt a user for a comment when using a batch file to commit to a GIT repository? -
i have found way streamline git using batch files forces me bypass of import step. using batch file cannot stop , prompt user comment on commit. know how can pause batch file , wait string comment on commit?
#!/bin/sh cd /c/users/... git add together *edited file* git commit -m %comment% git force echo press enter... read
have tried not adding -m switch git commit command?
it should launch default text editor (as set in $editor environment variable - run echo $editor know your's, notepad or vim) asking user commit message.
that's default git commit behaviour - -m switch shorthand.
windows git batch-file comments
No comments:
Post a Comment