Minimum Viable Git for Trunk-Based Development
blog.trunk.io
Minimum Viable Git for Trunk-Based Development
1–10 of 45 posts
Re: Minimum Viable Git for Trunk-Based Development
#2> Push my code to the remote; likely spinning up lots of machines in CI to check my work.
That's a good callout; something that I have noticed I frequently miss when iterating on my code is the cost of the CI/CD systems already set up. It's something to consider especially when iterating using a system like Sapling for Stacked PRs; each individual PR push may update a chain which causes a lot of wasted CI/CD time.
Re: Minimum Viable Git for Trunk-Based Development
#3> git push origin > Push my code to the remote; likely spinning up lots of machines in CI to check my work. That's a good callout; something that I have noticed I frequently miss when iterating on my code is the cost of the CI/CD systems already set up. It's something to consider especially when iterating using a system like Sapling for Stacked PRs; each individual PR push may update a chain which causes a lot of was…
Re: Minimum Viable Git for Trunk-Based Development
#4Re: Minimum Viable Git for Trunk-Based Development
#5Re: Minimum Viable Git for Trunk-Based Development
#6Re: Minimum Viable Git for Trunk-Based Development
#7> Add everything I’m working on (new and edited files).
Bad idea. Extraneous cruft that isn't caught by .gitignore will leak into the repo. Always run git diff and git status first to see what you are about to add.
Re: Minimum Viable Git for Trunk-Based Development
#8> git add -A . > Add everything I’m working on (new and edited files). Bad idea. Extraneous cruft that isn't caught by .gitignore will leak into the repo. Always run git diff and git status first to see what you are about to add.
Re: Minimum Viable Git for Trunk-Based Development
#9I'll always be a rebase diehard, but the core message here is great. If you have to do more than a little bit of git surgery, you're probably doing something else wrong.
Re: Minimum Viable Git for Trunk-Based Development
#10> git push origin > Push my code to the remote; likely spinning up lots of machines in CI to check my work. That's a good callout; something that I have noticed I frequently miss when iterating on my code is the cost of the CI/CD systems already set up. It's something to consider especially when iterating using a system like Sapling for Stacked PRs; each individual PR push may update a chain which causes a lot of was…
They have a ton of other handy toys, even if the syntax is ... Very Git :-( https://docs.gitlab.com/ee/user/project/push_options.html#pu... I suggested a feature-request to add `git push -o gitlab.help`: https://gitlab.com/gitlab-org/gitlab/-/issues/359267 as well as showing the CLI equivalent for the web workflow:
CI variables: https://gitlab.com/gitlab-org/gitlab/-/issues/359268