Skip to content

Commit 99db78c

Browse files
Uploaded my git push automation so that i dont manually have to git add add git commit git pull and git push
1 parent e96655b commit 99db78c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

basics/git_add.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
2-
#-----------------------------------------
2+
33
# Git auto uploader with file picker
44
#-----------------------------------------
5+
# Created this file so that i dont manually have to git add add git commit git pull and git push
56

67
# List all files in current directory (excluding .git)
78
echo "Files in current directory:"
@@ -42,8 +43,6 @@ fi
4243
# Pull latest changes
4344
echo "Pulling latest changes from remote..."
4445
git pull origin "$branch"
45-
46-
# Add, commit, and push
4746
git add "$filename"
4847
git commit -m "$commit_msg"
4948
git push origin "$branch"

0 commit comments

Comments
 (0)