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
# make YARN default | |
ng config -g cli.packageManager yarn | |
# make CNPM default | |
ng config -g cli.packageManager cnpm | |
# make NPM default | |
ng config -g cli.packageManager npm |
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
# delete tag locally | |
git tag -d tagName | |
# delete tag remote | |
git push --delete origin tagName |
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
github_repo="https://github.com/repo/repo.git" | |
TAGS=$(git ls-remote --refs --tags ${github_repo} | awk -F/ '{ print $3 }' | awk '{print $NF}') | |
LATEST_TAG=$(echo $TAGS | awk '{print $(NF-1)}') | |
echo $LATEST_TAG |
NewerOlder