Skip to content

Instantly share code, notes, and snippets.

@allanShady
Last active September 30, 2021 09:08
Show Gist options
  • Save allanShady/52d6bbad0a1dcb7478f42cb916e0a74b to your computer and use it in GitHub Desktop.
Save allanShady/52d6bbad0a1dcb7478f42cb916e0a74b to your computer and use it in GitHub Desktop.
Usefull git commands
#!/bin/bash
# remove all local branches except develop
git branch | grep -v “develop” | xargs git branch -d
# undo the most recent git commit
git commit -m “core: commit message to undo live here”
# udoing the previous commit
git reset HEAD~
#delete branch locally
git branch -d <branche-to-delete-goes-here>
# delete branch from remote
git push origin --delete <branche-to-delete-goes-here>
# Quarkus check aws extension
quarkus ext --installable -s aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment