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.
git コマンドのような値git rev-list -n 1 --before=<timestamp> masterを変数に割り当てることは可能ですか。
git rev-list -n 1 --before=<timestamp> master
元:commits = git rev-list -n 1 --before=<timestamp> master
commits = git rev-list -n 1 --before=<timestamp> master
それから私は何かしたい
git tag RELEASE_01 $commits[0]
私のリポジトリは Windows XP システム上にあり、msysgit を使用しています。
ありがとうございました
バッククォートを使用したり$()、あるコマンドを別のコマンド内で評価したりできます。たとえば、次のようになります。
$()
git tag RELEASE_01 `git rev-list -n 1 --before=<timestamp> master`