web.archive.org

This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as one pretty commit. Squashing commits with git rebase

...rebase -i master Note that rebasing to the master does not work if you merged the master into your feature branch while you were working on the new feature. If...

makandra dev

These might require extra configuration in Gitlab. [alias] # Push branch, create a merge request and set the branch to be removed on merge pmr = push -u origin HEAD...

...o merge_request.create -o merge_request.remove_source_branch # If you do not need a code review, but use the merge request to run a test pipeline: # Push branch, create a merge request...

...same". Hazards are unnecessary and hard to resolve conflicts as well as incorrect auto-merges. In order to avoid this, always merge the production branch back to the main after...

git checkout production git cherry-pick AWESOME_COMMIT_SHA1 git checkout main git merge production To make your future life easier, choose a slightly more verbose merge commit message...

makandra dev

# Combine coverage results from the test runners to a single report coverage: name: Merge Coverage Reports runs-on: ubuntu-latest

steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-ruby - uses: actions/download-artifact@v4 with: pattern: coverage-report-* merge-multiple: true path: tmp/coverage - name: Run coverage merger run: bundle exec rake merge_coverage...

makandra dev

Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...

...from my-feature-branch will do nothing, as production is already in its history. Merging the feature branch into production would now merge commits 3 through 6, including commit...

branch master commit id: "3" commit id: "4" checkout production merge master commit id: "5" commit id: "6" This is not what we want. Instead, we want...

Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version the change was released. This might be the case for...

...o─┴─┘ Preparing for 6.1.5 release <=== this releases the commit we need c67e8d8 o Merge pull request #44641 from SkipKayhil/fix-rubocop-errors 1afe117 o Update CHANGELOG [ci skip] 87528db o Revert "Merge pull...

...the master, so you and your colleagues don't have a big overhead with merge conflicts. Get all existing offenses bundle exec rubocop --parallel --format offenses 541/541 files 383 Layout/ArrayAlignment...

...consider whether you want to keep all these changes in a feature branch or merge them regularly to the master branch, so you and your colleagues don't have a...

I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...

Switched to branch 'master' (master) $ This also works with other commands like git merge: (master) $ git checkout foobar Switched to branch 'foobar' (foobar) $ git merge - Merged branch 'master...

...and to not cause any trouble. Example Consider this scenario: Your refactoring is finished, merged into master but client approval takes its time and then over time more and more...

...touched "needlessly", the more complex detangling gets and the harder it will be to merge from master to production or vice versa. Have a workflow About branches

[path to file] is optional git restore --staged [file path]... When you have merged your branch you can use --merge flag to recreate the conflicted state in the unmerged...

...Dev machines are not blocked on test runs; Code Reviews include test badge; Automatically merge a PR on green tests Upgrade Rails 5 0 - 5 New Rails features are accessible...

In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...

collapse_whitespace: true, ignore_attr_order: true, ignore_comments: true, } options = default_options.merge(options).merge(verbose: true) diff = CompareXML.equivalent?(expected_doc, actual_doc, **options) diff.blank? end end Alternatives

...the root node of each YAML tree is the locale code, it can just merge all files together. You may need to restart your server if you add files to...

makandra dev

We have a long-standing checklist for merge requests. However, it hardly matches the intricate requirements for design. This checklist fills the gap. Before starting implementing, look at all designs...

chris.beams.io

If applied, this commit will release version 1.0.0 If applied, this commit will merge pull request #123 from user/branch Bad: If applied, this commit will fixed bug with Y...

When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...

...full control over file descriptors (and lets you point stdin to a file, or merge stdout and stderr) etc. Open3 however does not allow you to do this. If you...

When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...

github.com

...by using Ruby's interal coverage module. The coverage results of every spec is merged together into one matrix.After a spec finishes the results of the coverage module have to...

...rebase drastically. A more complex logic would be required to read out the difference. Merge of files is only allowed to happen when a complete test file has been run...

Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...

postgresql.org

...Record.last, it will default to ordering by id. See also Before you make a merge request: Checklist for common mistakes