Is there a way to squash a number of commits non-interactively?
Make sure your working tree is clean, then git reset –soft HEAD~3 git commit -m ‘new commit message’
Make sure your working tree is clean, then git reset –soft HEAD~3 git commit -m ‘new commit message’
Many ways pipe your input echo “yes no maybe” | your_program redirect from a file your_program < answers.txt use a here document (this can be very readable) your_program << ANSWERS yes no maybe ANSWERS use a here string your_program <<< $’yes\nno\nmaybe\n’
>>> import getpass >>> pw = getpass.getpass()
You can use the perl debugger on a trivial program, like so: perl -de1 Alternatively there’s Alexis Sukrieh‘s Perl Console application, but I haven’t used it.
You need to include the following lines in your docker-compose.yml: version: “3” services: app: image: app:1.2.3 stdin_open: true # docker run -i tty: true # docker run -t The first corresponds to -i in docker run and the second to -t.