ssh-keygen -t rsa -C "misostack.com@gmail.com"
git config --global user.name "misostack"
git config --global user.email "misostack.com@gmail.com"git branch | grep ‘your_string_here’Delete it remotely too.
git branch | grep ‘your_string_here’ | xargs git push origin — deleteExample
git branch -D `git branch | grep -vE 'master|develop|release/*'`local branch
git branch -d local-branch-nameremote branch
git push origin -d remote-branch-namegit remote set-url --push origin DISABLE # important, you can not push directly on origin repo# create new tag
git tag tagName
git push --tags
# delete local tag
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagNamegit tag -d tagName
cannot lock ref 'refs/remotes/origin
Answered
git fetch --prune