Skip to content

gitΒΆ

git tag v1.0.0
git push origin v1.0.0
``

- my push script

```sh
# push.sh 'comment'
#!/usr/bin/env bash
# ./push.sh commit_message

function addcommitpush () {
  message=(\'"$@"\')
  current=$(git branch | grep "*" | cut -b 3-)
  # read -r -i "$current" -e branch
  remote=$(git remote -v | head -1 | cut -d ' ' -f 1 )
  echo push local branch "$current" to "$remote" y n ?
  read -r yn
  if [ "$yn" = y ]; then
    # echo "$current" "$remote"
    git add -A && 
    cz c
    git push origin "$current"
  else
    echo "nope"
  fi
}

addcommitpush "$1"
mkdocs gh-deploy
open https://github.com/shane0/cheatsheets/actions