DevOpsWay Mini #2 – git good

I’m back!

Today, definitely on the shorter side.

I’ve had some thoughts when using git lately.
On my branch, I had a few commits – but I wanted to push them as a single one instead.
My gut instinct was to use squash – but it’s kind of a big deal 🤔
Yo…


This content originally appeared on DEV Community and was authored by Bartlomiej

I'm back!

Today, definitely on the shorter side.

I've had some thoughts when using git lately.
On my branch, I had a few commits - but I wanted to push them as a single one instead.
My gut instinct was to use squash - but it's kind of a big deal 🤔
You need to enter interactive rebase, and select the commits to be squashed.
I felt like trying something else as my changes weren't complicated and just did soft reset then amended the commit - worked like a charm✨!

And the thoughts? I guess I need to step up my git game - who knows how many things are lurking in the documentation that I'm not aware of due to habits.
What are your go-to tricks to save the day?

See you soon... tomorrow, hopefully!


This content originally appeared on DEV Community and was authored by Bartlomiej


Print Share Comment Cite Upload Translate Updates
APA

Bartlomiej | Sciencx (2025-10-18T18:37:15+00:00) DevOpsWay Mini #2 – git good. Retrieved from https://www.scien.cx/2025/10/18/devopsway-mini-2-git-good/

MLA
" » DevOpsWay Mini #2 – git good." Bartlomiej | Sciencx - Saturday October 18, 2025, https://www.scien.cx/2025/10/18/devopsway-mini-2-git-good/
HARVARD
Bartlomiej | Sciencx Saturday October 18, 2025 » DevOpsWay Mini #2 – git good., viewed ,<https://www.scien.cx/2025/10/18/devopsway-mini-2-git-good/>
VANCOUVER
Bartlomiej | Sciencx - » DevOpsWay Mini #2 – git good. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/10/18/devopsway-mini-2-git-good/
CHICAGO
" » DevOpsWay Mini #2 – git good." Bartlomiej | Sciencx - Accessed . https://www.scien.cx/2025/10/18/devopsway-mini-2-git-good/
IEEE
" » DevOpsWay Mini #2 – git good." Bartlomiej | Sciencx [Online]. Available: https://www.scien.cx/2025/10/18/devopsway-mini-2-git-good/. [Accessed: ]
rf:citation
» DevOpsWay Mini #2 – git good | Bartlomiej | Sciencx | https://www.scien.cx/2025/10/18/devopsway-mini-2-git-good/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.