++ed by:
ILUX
Author image Yuki Kimoto

NAME

Giblog::Command::save - save command

DESCRIPTION

Giblog::Command::save is save command.

METHODS

Giblog::Command::save inherits all methods from Giblog::Command and implements the following new ones.

run

  $command->run('-m', $message, $remote_repository, $branch);

save command executes the following git commands(add, commit, push).

This is the same as the following command. In this example, the commit message is "Hello". the repository name is "origin". the branch name is "main".

  git add --all
  git commit -m "Hello"
  git push origin main