I spent a relaxing weekend with my family. We were walking through the forrest with our dog Digger. Normaly I can stop thinking about work when I see all the different trees, listen to the sound of the forrest and smell the fresh air. But there was something… a feeling.
Do you know that feeling when you have overcome a big challenge or finally reached a goal? That mix of success and curiosity about what comes next? That was exactly how I felt after my first Git learning day: successful, curious and with a headache. (strange combination - I know, but interesting) And exactly that feeling was still there - in the forrest.
And so the weekend past and monday came. But instead of stopping, I set myself some new goals:
Today was my second Git learning day. I had already learned how to create a branch, squash commits, use the AI integration and work with Git LFS for large files. But today, I wanted to really get started.
The task sounded simple:
- Create a branch.
- Squash two commits.
- Bring the changes into
main.
What could possibly go wrong? I was sure: nothing.
But….
My First Mistake Took About Two Minutes

I wanted to create a new branch for a blog article. Somehow, I accidentally created it from the branch for our Community Insights. I still do not know exactly how I managed that… but welcome to my Git learning journey.
Fortunately, fixing it was easier than expected. I selected develop, created the new branch again and deleted the incorrect one.
First lesson of the day: Before creating a branch, always check which branch you currently have selected. Your new branch will start from exactly there.
Squashing Was the Easy Part
Next, I squashed my first two commits. Remember: Squashing means combining several commits into one. This is useful when several small changes belong together and do not need to appear as separate steps in the final history.
So far, so good. Then came the rebase.
Rebase: Why Can’t I Select It?
During my learning sessions Marc gave me some task to solve. So I could learn the most. He wrote: now rebase.
Oh my god… what? Rebase? What is that??? My heart started to beat so fast, that I could here it. Ok… deep breath… and let’s move on.
First I checked: What does rebase actually mean?
Imagine that I create my feature branch from main and start working on it. While I am making my changes, other changes are added to main. My feature branch is therefore no longer based on the latest version. This happens when f.e. team members make changes on main. So a rebase takes my commits, updates my branch to the latest state of main and then places my commits back on top of it. The result is a clean, linear history without an additional merge commit.
That sounded perfect, but there was one detail I did not understand at the time: a rebase recreates my commits and gives them new commit IDs. This will become important later. Very important…
So, I wanted to rebase my feature branch, Magnus_Story, onto main. But the Rebase option was unavailable.

I checked the most likely reasons:
- Was I on the wrong branch? No,
Magnus_Storywas active. - Was another Git operation still running? No.
- Had I failed to select the target branch? Possibly.
Then I had an idea: I dragged main onto my branch.
SmartGit showed me three options:
- Set
**main**to**Magnus_Story** - Merge
**main** - Rebase HEAD to
**main**

Three options - and, as a Git newbie, absolutely no idea which one I should choose. So I researched what they meant.
Option 1: Set main to Magnus_Story
Even the name sounded suspicious to me.
This option would move main to the same commit as Magnus_Story. In other words, I would change main itself.
That was not what I wanted.
Option 2: Merge main
This would bring the changes from main into my feature branch and create a merge commit.
That would work, but I wanted a clean, linear history without an additional merge node.
Option 3: Rebase HEAD to main
This was the option I needed.
SmartGit would take my commits from Magnus_Story and place them on top of the current main. My feature branch would then contain the latest changes from main, followed by my own commits.
So I selected it.

Fingers crossed.
Aaaaaaaaaand…. it worked. YES!

Then SmartGit Warned Me
Before pushing, I clicked Pull and received this message:
Your local branch seems to be a rewrite of the remote branch.
At first, that did not sound very reassuring.
So, another short Git-newbie explanation:
- My local branch was the version on my computer.
- The remote branch was the version stored on the server.
The rebase had rewritten my local commits and given them new IDs. The remote branch still contained the old commits. SmartGit recognized this difference and offered two choices: Fetch Only or Re-integrate.

But what does Fetch Only mean?
In simple words, it tells SmartGit: “Check what is currently stored on the server, but do not mix it into my local branch.” SmartGit updates the remote information I can see, but my files, commits and newly rebased history remain unchanged. Re-integrate, on the other hand, would try to bring the old remote history back into my new local history. That was not what I wanted - I had just created the new, clean history on purpose. After checking with my colleague Marc I selected Fetch Only.
When I pushed afterwards, SmartGit displayed another warning:
Non-fast-forward update - Force push?
Yes, another message that does not sound particularly welcoming to a beginner. A normal push adds new commits on top of the existing remote history. But after my rebase, the local history was no longer a direct continuation of the remote one because my commits had new IDs.

In my situation, the force push told SmartGit: “Replace the old remote version of this branch with my new, rebased local version.”
Important: A force push can overwrite a remote branch. It should only be used when you understand why it is necessary and know that nobody else is working with the old version of that branch.
Luckily, I was the only person working on Magnus_Story.
I confirmed the force push and my local and remote branches were synchronized again.
What Had Actually Happened?
This is how I finally understood it:
- Rebase placed my commits on top of the latest
mainand gave them new commit IDs. - Fetch Only updated my information about the remote repository without combining anything.
- Force Push replaced the old remote history with my newly rebased history.
In the Log Window, I could see that Magnus_Story was positioned above main. The history was one clean line, without a merge node.
That was exactly what I wanted (Marc told me that it is correct - of course I did NOT know that this is what I wanted…)
Of Course, I Was Not Finished Yet
Marc then noticed two more things:
- My commit had the wrong author.
- My local
mainwas not up to date withorigin/main.
Changing the author also rewrote the commit and created another new commit ID. Because the commit had already been pushed, SmartGit warned me again. Of course… I confirmed Modify Pushed Commits, updated the author information and pushed the branch again - with another force push.

So what to do if you need to correct the commit author (e.g., wrong name or email):
- Stay on your feature branch (
feature/blog-page). - Go to Branch -> Edit Author….
- Confirm the warning (Modify Pushed Commits) - this rewrites history.
- Enter the correct name.
- Push again -> confirm Force Push.


Another important lesson: **main** and **origin/main** are not automatically the same.
main is my local version on my computer. origin/main represents the latest information SmartGit has fetched from the remote repository.
And another note: Safe if only you work on the branch. If the branch is shared, coordinate with your team before forcing a rewrite.
And Then Came the Conflict - what else…

During the next rebase, I encountered a conflict. SmartGit’s Conflict Solver could not save the file because it still contained conflict markers such as:
<<<<<<< HEAD
=======
>>>>>>> commit

These markers show the different versions Git could not combine automatically.
If SmartGit opens the Conflict Solver, you may see conflict markers in files:

I removed them in the Working Tree, kept the correct content and saved the file.

To resolve:
- Keep the correct version manually.
- Remove all conflict markers (
<<<<<<<,=======,>>>>>>>). - Save the file.
- Mark the conflict as resolved in SmartGit -> Continue Rebase.

If “Save” is disabled, some conflict markers are still present in the file.
After solving all conflicts, I continued the rebase and pushed the corrected branch.

I checked the result on dev.smartgit.dev.
And there it was: A typo. Directly in the headline.
Of course. Oh… my… god… Good job, Cornelia… That’s eaxactly what I thought.
One Final Correction
Okay, so I returned to Magnus_Story, corrected the typo and checked whether I could squash the last two commits.
Yes, I could.
After squashing them, I pushed the branch again, updated develop with my completed work and checked the result on the development website.
Everything looked correct.
Finally, I brought the same version to main.

And there it was on www.smartgit.dev.
Done.
What I Learned That Day
My task sounded simple: create a branch, squash two commits and bring the changes into main.
In reality, I learned much more:
- A new branch starts from the branch currently selected.
- A rebase rewrites commits and gives them new IDs.
mainis local, whileorigin/mainrepresents the remote state last fetched.- Fetch updates remote information without integrating it.
- A force push may be necessary after a rebase, but must be used carefully.
- A clean rebase appears as a linear history without a merge node.
- Conflict markers must be removed before a conflicted file can be saved.
- And a typo will always wait until the very end to appear.
Was I confused? Yes.
Did I need help? Definitely.
Did I have a headache? Also yes.
But at the end of the day, my branch was clean, my history was linear and the updated page was live. And, most importantly, I finally understood what had happened.