ssh-keygen -t rsa -C "[email protected]"
git config --global user.name "misostack"
git config --global user.email "[email protected]"
git branch | grep ‘your_string_here’
Delete it remotely too.
git branch | grep ‘your_string_here’ | xargs git push origin — delete
Example
git branch -D `git branch | grep -vE 'master|develop|release/*'`
local branch
git branch -d local-branch-name
remote branch
git push origin -d remote-branch-name
git 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 tagName
git tag -d tagName
cannot lock ref 'refs/remotes/origin
Answered
git fetch --prune