Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save FrancoStino/a86ca0555913edcdf5df0c7a35c514d4 to your computer and use it in GitHub Desktop.
Save FrancoStino/a86ca0555913edcdf5df0c7a35c514d4 to your computer and use it in GitHub Desktop.
This code snippet updates the "nome-branch" branch in a Git repository and deletes it from its origin.

Remove the branch locally and in the remote repository in one operation

Preview:
git branch -D nome-branch && git push origin --delete nome-branch
Associated Context
Type Code Snippet ( .sh )
Associated Tags Git branching Git push origin Nome-branch management Command line interface Node js frameworks Version control Data processing Remote repository creation Repository deletion
💡 Smart Description This code snippet updates the "nome-branch" branch in a Git repository and deletes it from its origin.
🔎 Suggested Searches Git push origin to nome-branch
How to delete nome-branch from git repository
Git branch command to remove nome-branch
Delete nome-branch using remote commands
Removing nome-branch with local working directory
Related Links https://git-scm.com/docs/git-remote
https://git-scm.com/docs/git-checkout
https://git-scm.com/docs/git-stash
Related People Davide Ladisa
Sensitive Information No Sensitive Information Detected
Shareable Link https://davideladisa.pieces.cloud/?p=b3f845a899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment