change push method to work in all git versions