Skip to content

Latest commit

 

History

History

git-mainly

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.