Git Tricks
These trick assumes you have a remote named 'origin'
GitHub source
Mac/Linux Tricks
Delete all remote branches that are not main
Copy to clipboard
On Delete all local branches that are not main
Copy to clipboard
Find all branches (in remotes and local) that I have created
Replace 'raph' with your name here
Copy to clipboard
Windows Tricks
Initialise git in working directory with latest Visual Studio .gitignore
Copy to clipboard
Delete all local branches that have been merged into main
Copy to clipboard
Delete all local branches that are not main
Copy to clipboard
Copy current branch to clipboard
Copy to clipboard
Delete remote branches with filter
Copy to clipboard
Find all branches (in remotes and local) that I have created
Just replace 'Raph' with your name here
Copy to clipboard
Stage all files for commit except those that are *.config at any level within your git repo
Copy to clipboard
Delete all remote branches that are not main
Copy to clipboard
Delete all remote branches that have been merged into main
Copy to clipboard
Pull multiple repositories in child folders (a.k.a. I'm back from a leave script)
Copy to clipboard