diff --git a/match/lib/match/git_helper.rb b/match/lib/match/git_helper.rb
index <HASH>..<HASH> 100644
--- a/match/lib/match/git_helper.rb
+++ b/match/lib/match/git_helper.rb
@@ -62,7 +62,7 @@ module Match
         commands = []
         commands << "git add -A"
         commands << "git commit -m #{message.shellescape}"
-        commands << "git push origin #{branch.shellescape}"
+        commands << "GIT_TERMINAL_PROMPT=0 git push origin #{branch.shellescape}"
 
         UI.message "Pushing changes to remote git repo..."
 
@@ -74,6 +74,9 @@ module Match
       end
       FileUtils.rm_rf(path)
       @dir = nil
+    rescue => ex
+      UI.error("Couldn't commit or push changes back to git...")
+      UI.error(ex)
     end
 
     def self.clear_changes
[match] Don’t hang when git credentials are not there

This would be hanging when not running in read-only mode, having a public repo, but not having push access