From fafba9c37076e5860c14438f561d7ad585606f0b Mon Sep 17 00:00:00 2001 From: Ronaldson Bellande <47253433+RonaldsonBellande@users.noreply.github.com> Date: Wed, 4 Dec 2024 03:33:42 -0500 Subject: [PATCH] Delete git_scripts/push.sh --- git_scripts/push.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 git_scripts/push.sh diff --git a/git_scripts/push.sh b/git_scripts/push.sh deleted file mode 100755 index 0b793ae..0000000 --- a/git_scripts/push.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Git push what is already in the repository -git pull --no-edit; git fetch; - -# Exclude specific files and directories -EXCLUDES=(".git" ".gitignore" "executable") - -# Find all non-hidden files and directories, excluding any hidden files and directories -find . -type f ! -path '*/.*' -print0 | while IFS= read -r -d '' file; do - # Check if the file is in the exclude list - should_exclude=false - for exclude in "${EXCLUDES[@]}"; do - if [[ "$(basename "$file")" == "$exclude" ]]; then - should_exclude=true - break - fi - done - - # Add file to staging area if it's not excluded - if [ "$should_exclude" = false ]; then - git add -f "$file" - fi -done -git commit -am "latest pushes"; git push