Skip to content

Instantly share code, notes, and snippets.

@devkabir
Created July 10, 2024 15:13
Show Gist options
  • Select an option

  • Save devkabir/5fce0b0fe80ed19bdfb8c1dbe082e969 to your computer and use it in GitHub Desktop.

Select an option

Save devkabir/5fce0b0fe80ed19bdfb8c1dbe082e969 to your computer and use it in GitHub Desktop.
Git commands for daily usage

prune local remotes

 git fetch origin --prune

delete local remote less branch

 git branch | grep -v "\* " | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment