Skip to content

Instantly share code, notes, and snippets.

@ikhsanalatsary
Created August 1, 2022 00:54
Show Gist options
  • Save ikhsanalatsary/c6d2da8c0a19e48f1a2d470ec4cff766 to your computer and use it in GitHub Desktop.
Save ikhsanalatsary/c6d2da8c0a19e48f1a2d470ec4cff766 to your computer and use it in GitHub Desktop.
Copy your current working git branch to clipboard
#!/bin/bash
git branch|grep '* '|pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment