Loading...
Loading...
Sync the local main branch with the latest code from the official upstream or origin remote
npx skill4agent add zc277584121/mygitplugin git-sync-maingit remote -vofficialmainmastergit remote show officialgit fetch officialgit checkout <main-branch>git reset --hard official/<main-branch>git push origin <main-branch> --force-with-leasemainmastergit fetch origingit checkout <main-branch>git pull origin <main-branch>git log --oneline -5officialupstream--force-with-lease--force