NAME
Giblog::Command::publish - Website publish command
DESCRIPTION
Giblog::Command::publish is website publish command.
METHODS
Giblog::Command::publish inherits all methods from Giblog::Command and implements the following new ones.
run
$command->run($remote_repository, $branch);
Publish your website by specifing remote repository name and branch name.
This is the same as the following command. In this example, the repository name is origin and the branch name is main. YY-mm-dd HH:MM:SS is current date and time.
git --git-dir=public/.git add --all
git --git-dir=public/.git commit -m "Published by Giblog at YY-mm-dd HH:MM:SS"
git --git-dir=public/.git push origin main