Skip to content

Commit f4bd576

Browse files
authored
Update push.sh
1 parent d1744a8 commit f4bd576

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

push.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
#!/bin/bash
22

3+
# Prompt for the version tag
4+
echo "Enter the version tag you want to create (e.g., v1.0.1): "
5+
read VERSION_TAG
6+
37
# Stage all modified files
48
git add .
59

610
# Commit with a prompt for your message
7-
git commit -m "Dylan Fixing Issues"
11+
echo "Enter your commit message: "
12+
read COMMIT_MESSAGE
13+
git commit -m "$COMMIT_MESSAGE"
14+
15+
# Create an annotated Git tag
16+
git tag -a "$VERSION_TAG" -m "Release $VERSION_TAG"
17+
18+
# Push your commit and tags to the remote branch
19+
git push origin "$(git branch --show-current)" --tags
820

9-
# Push your changes to the remote branch
10-
git push origin $(git branch --show-current)
21+
echo "Changes committed and tagged as $VERSION_TAG. Pushed to origin."

0 commit comments

Comments
 (0)