I have created the following alias so we more quickly can setup projects as part of our pipeline.
git config --global alias.setupforktemplate !git remote add old-origin $1 && git lfs fetch --all old-origin && git lfs push --all origin && git lfs pull
What it does it fetches the LFS data from a source repo and re-push the LFS data to a fork from the source repo. The problem with this is that it will certainly produce errors midway. It even says so in the guide "Git LFS files are not copied when a repo is forked"
This error is expected and is not a problem because the remaining part of the alias will resolve the issue. The problem is, when the error is triggered the execution of the alias is halted midway. Is it possible to do something that allows me to continue executing the alias even though an error occurs?
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs