Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 330 Bytes

index.md

File metadata and controls

20 lines (12 loc) · 330 Bytes

git mainly

Make local like main

Git alias:

mainly = !git checkout main && git fetch origin --prune && git reset --hard origin/main

Example:

git mainly

Do everything we can to make the local repo like the main branch.

TODO: handle tags, and delete superfluous branches, and add error handling.