Script to check if git has local changes March 05, 2020 Get link Facebook X Pinterest Email Other Apps Script to check if git has local changes In Ruby: changes = `git status --porcelain`.each_line if changes.any? $stderr.puts "git says there are untracked files or uncommitted changes" exit 1 end Comments
Comments
Post a Comment