-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add scripts that help user in commiting there changes to git in one cmd
- Loading branch information
1 parent
ddf19c5
commit 6033003
Showing
2 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
echo "Hello Coding Notes" | ||
# !/bin/bash | ||
|
||
# Staging Files | ||
echo "Staging Files Changes...." | ||
git add . | ||
|
||
echo "" | ||
|
||
# Commiting Change | ||
read -p "Enter a commit message: " message | ||
|
||
echo "Commiting the change..." | ||
git commit -m "$message" | ||
|
||
echo "" | ||
|
||
# Pushing them to Remote | ||
read -p "Want to push it to remote (y/n): " res | ||
|
||
if [ $res -eq "y" ]; then | ||
echo "Pushing your change...." | ||
git push | ||
fi | ||
|
||
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
echo "Hello Coding Notes" | ||
# !/bin/bash | ||
|
||
# Staging Files | ||
Write-Host "Staging Files Changes...." | ||
git add . | ||
|
||
Write-Host "" | ||
|
||
# Commiting Change | ||
$message = Read-Host "Enter a commit message" | ||
|
||
Write-Host "Commiting the change..." | ||
git commit -m "$message" | ||
|
||
Write-Host "" | ||
|
||
# Pushing them to Remote | ||
$res = Read-Host "Want to push it to remote (y/n)" | ||
|
||
if ($res -eq "y") { | ||
Write-Host "Pushing your change...." | ||
git push | ||
} | ||
|
||
Write-Host "" |