Ran Qiangjun

Blog/Bloglet about Drupal, Ops, and mORe

Bash: timestamp and commit id

Submitted by jungle on Thu, 10/10/2019 - 14:17
  1. timestamp=$(date +"%Y%m%d-%H%M")
  2.  
  3. commit_id=$(ssh a2 cd /home/jungle/repo && git rev-parse --short HEAD)
©2020 ranqiangjun.com. All rights reserved.