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
#!/bin/bash | |
echo "Adding and commiting files" | |
# loop for all files until reach to a -m | |
while [ "$1" != "" ] && [ "$1" != "-m" ]; do | |
#Print the file name that is being added | |
echo "Adding to staging area $1" | |
#Adds the file | |
git add "$1" | |
#Go to the next parameter |