git static method

Future<void> git(
  1. String actionName, [
  2. bool check = false
])

this function will =>

  1. git add .
  2. git commit -m actionName
  3. git push
  4. git status

Implementation

static Future<void> git(String actionName, [bool check = false]) async {
  if (check && !useGit) return;
  await Shell().run('''git add .''');
  await Shell().run('''git commit -m  "$actionName"''');
  await Shell().run('''git push''');
  await Shell().run('''git status''');
}