Skip to content

Instantly share code, notes, and snippets.

@nullivex
Created March 27, 2013 03:58
Show Gist options
  • Save nullivex/5251512 to your computer and use it in GitHub Desktop.
Save nullivex/5251512 to your computer and use it in GitHub Desktop.
Push LSS packages from composer tree
#!/bin/bash
pkg="$1"
cd $1
#check for untracted files
if [ $(git status | grep -i "Untracked files" | wc -l) -gt 0 ]; then
echo "Untracked files cant push"
exit
fi
git commit -a -m "$2"
commit=$(git log | head -1 | awk '{print $2}')
git checkout master
git merge $commit
git push
@nullivex
Copy link
Author

Usage

./push_pkg.sh func-ui "new features"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment