File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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
+
3
7
# Stage all modified files
4
8
git add .
5
9
6
10
# 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
8
20
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."
You can’t perform that action at this time.
0 commit comments