This file contains hidden or 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/sh | |
set -e | |
changes=`git status -s | grep -v "??" | wc -l` | |
if [ "$changes" -gt "0" ]; then | |
echo "found $changes local changes. stashing them." | |
git stash | |
fi | |
current_branch=`git branch | grep '*' | cut -d ' ' -f2` | |
echo "update develop from origin" | |
git pull origin develop:develop |
This file contains hidden or 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 | |
if [[ $# -lt 3 ]] ; then | |
echo "Usage: merge-my-repos <sub_directory> <path_to_repo> <prefix_for_tags>" | |
exit 1 | |
fi | |
DIR=$1 | |
REPO=$2 | |
TAG_PREFIX=$3 |