postgres/scripts/util/util_git_push.sh
2025-03-05 14:22:06 +07:00

20 lines
No EOL
709 B
Bash
Executable file

################################################################################
# BASH SCRIPT ON LINUX/UNIX - BEGIN
################################################################################
#!/bin/bash
export GIT_BRACNH="main"
export TIMESTAMP=`date +"%Y-%m-%d %H:%M:%S"`
export SCRIPT=$(readlink -f "$0")
export SCRIPT_PATH=$(dirname "$SCRIPT")
export SRC_DIR=${SCRIPT_PATH}/../..
cd ${SRC_DIR}
git add .
git checkout ${GIT_BRACNH}
git commit -m "${TIMESTAMP}"
git push -u origin ${GIT_BRACNH}
################################################################################
# BASH SCRIPT ON LINUX/UNIX - END
################################################################################