Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Shell 脚本的新手。
谁能告诉我我应该在下面的脚本中做什么,而不是将日期/时间作为 git commit 的参数,它实际上会提示我输入评论?
#!/bin/bash TODAY=$(date) ............. ............. git commit -m "$TODAY" ............ ............
read -p "Comment: " comment git commit -m "$comment"
#!/bin/bash echo "Type the date, followed by [ENTER]:" read TODAY git commit -m "$TODAY"