Skip to content

Instantly share code, notes, and snippets.

View hodunov's full-sized avatar
🇺🇦

hodunov hodunov

🇺🇦
  • Kharkiv, Ukraine
View GitHub Profile
@mitchellh
mitchellh / merge_vs_rebase_vs_squash.md
Last active July 4, 2024 13:50
Merge vs. Rebase vs. Squash

I get asked pretty regularly what my opinion is on merge commits vs rebasing vs squashing. I've typed up this response so many times that I've decided to just put it in a gist so I can reference it whenever it comes up again.

I use merge, squash, rebase all situationally. I believe they all have their merits but their usage depends on the context. I think anyone who says any particular strategy is the right answer 100% of the time is wrong, but I think there is considerable acceptable leeway in when you use each. What follows is my personal and professional opinion:

@excelcrafters
excelcrafters / Goal_Seek_Multiple_Cells_Multiple_Goals.txt
Created May 30, 2019 09:07
Goal Seek analysis for a range with multiple Goals (VBA)
Sub Reset_External_Marks()
'Select the external marks range
Range("E5:E13").Select
'Clear the external marks range
Selection.ClearContents
End Sub
Sub Goal_Seek_Range_MultipleGoal()
'Defining variable k
Dim k As Integer