...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

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...

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...

...Achte wie immer darauf die einzelnen Aufgaben in Feature Branches zu verpacken und einen Merge Request für deinen Mentor zu erstellen. Forke das Git Repository der Applikation notestar. Lies die...

...ein container image mit genau diesem tag gepushed werden. Außerdem auch latest In einem Merge Request soll ein image mit dem Namen des Branches gepushed werden. Beachte, dass Branches / im...

makandra Curriculum

...Feature branches Code reviews Commit squashing (and the resulting traceability through git blame) Our Merge request checklist Read the card Before you make a merge request: Checklist for common mistakes...

...Include the checklist in the description of all future merge requests and try to tick all boxes. You can ignore the translation and pagination requirements for now as they are...

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...

makandra Curriculum

Switch to existing branches: git switch or git checkout Combining history: git merge Work with the stash git stash Learn how to work with a server:

...branch and make some small changes there Push changes to the server Make a merge request from the branch to your master Accept the merge request Play around on github.com...

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...

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

DevOps Curriculum

...Kapitel. Am besten auch mit pre-commit hooks. Für die einzelnen Arbeitsschritte solltest du Merge Requests erstellen, die dein Mentor reviewt. Der Name des Merge Requests und des Feature Branches...

...a Variadic Function. You can use this behavior for example if you want to merge a list of maps into one map: locals { list_of_maps = [ { "key1" = "value1" "key2" = "value2...

...key2" = "new_value2" "key3" = "value3" }, { "key4" = "value4" } ] merged_map = merge( [for map_item in local.list_of_maps: map_item]... ) } output "merged_map" { value = local.merged_map } Note This only works when...

...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

makandra Curriculum

commit id: "init rails" Exercise 3: Rebase onto a diverged feature branch with merge conflicts %%{init: { 'gitGraph': { 'mainBranchName': 'master'}} }%% gitGraph: commit id: "new-git-repo" branch feature-node

...the commit "setup node" should be identical within the two branches. Solve the resulting merge conflicts at the README so that the paragraph about the echo script comes after the...

[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...

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

...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...

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

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...

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

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...

...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...