Oh my god. Today is my first real Git learning day and I am not exactly starting slowly, because I started with four topics:
- How to create a branch
- How and why to squash commits
- How to use AI for commit messages
- How to work with Git LFS for large files
It sounded like a reasonable plan.
Well, it was a plan - a huge one for a Git Newbie like me.
How to Create a Branch
Creating a branch is actually quite simple; once you understand where it starts.
A branch is your own working area. You can make changes there without immediately changing main, develop or the work of other team members.
In the Standard Window, select the basis where your new branch should begin, open the context menu and choose Add Branch. Give your branch a clear name, create it and check it out so that it becomes your active branch. And here comes the important Git-newbie lesson: Always check which branch or commit you are starting from.

My first branch began at the wrong place because I had selected another feature branch instead of develop. Luckily, I could delete it and create it again from the correct starting point. ;)
How and Why to Squash Commits
When working on a task, you often create several small commits:
- Correct headline
- Correct the headline again and maybe one more time ;)
- Remove typo
- Really remove typo this time
- Final correction (hopefully :D)
These commits are helpful while you are working, but they do not always need to remain as separate steps in the final history. People are more interested in the final version - not in the steps between. This is where Squash comes in. Squashing combines several related commits into one clear commit. In SmartGit, select the affected commits in the history, open the context menu and choose Squash. You can then write one commit message that describes the complete change.

Why should you squash? Because it keeps the history clean and easier to understand. Instead of five tiny correction commits, your team sees one meaningful commit that explains what was actually changed.
And since I know how squashing works, I love it. There is something very satisfying about turning a collection of small, slightly chaotic commits into one clean and understandable step. But I also learned that I should not squash everything. If commits represent separate, meaningful changes, they should remain separate. Squashing is for changes that belong together - not for making the entire history disappear.
One more important point: squashing rewrites commits and gives them new IDs. If the commits have already been pushed or other people are working with them, you need to be careful.
AI-Generated Commit Messages: Yes or No?
Yes - at least for me. After working for several hours and making many changes, writing a clear commit message can be surprisingly difficult. I know what I changed, but explaining it in one short and useful message is another story.
SmartGit’s AI integration can analyse the changes and suggest a suitable commit message. After configuring your preferred AI provider, you can use the AI button in the Commit View to generate one.
Do you always have to use it? No. If you prefer writing your own commit messages, write them yourself. You are still completely free to do so. But if you have worked on several related changes and want help summarizing them, the AI integration can save time and give you a useful starting point.
I prefer to let SmartGit write the message. ;) Of course, I still read it before committing. AI can make suggestions, but I am still responsible for checking whether the message really describes my changes.
Also remember that SmartGit sends the relevant diff to your configured AI provider. Before using the feature, check whether this is suitable for the repository and data you are working with.

Git LFS: The Small Grey Symbol I Ignored
In Marketing, we work with images, screenshots, logos, videos, key visuals and many other files that can become quite large.
So, of course, I managed to crash everything. I noticed the small grey LFS symbol in SmartGit, but I did not think it was important.
I was wrong.
Very wrong.

Git is excellent at managing text-based files and tracking their changes. Large binary files = LFS, however, can make a repository unnecessarily large and slow. Git LFS solves this problem by storing the large file separately and keeping only a small pointer to it inside the Git repository.
And yes: if you work with large marketing files, you need to pay attention to it. ;) Otherwise you need to call a colleague - like in me it was Daniel - who helps you to fix it. Or you simply ask your AI buddy to help you to fix it.
How to Use Git LFS in SmartGit
First, Git LFS must be installed. In SmartGit, you can do this via: Local -> LFS -> Install

Usually, this only needs to be done once on your computer.
Then:
- Select the large, untracked file in the Files view.
- Choose Local -> LFS -> Track.
- SmartGit suggests a matching file pattern, such as
*.png. Check whether you want to track all files of this type or only a more specific pattern. - SmartGit creates or updates the
.gitattributesfile. - Add and commit both the large file and
.gitattributes. - Push the commit as usual.
The .gitattributes file is important because it tells Git - and everyone else working with the repository - which files should be managed through LFS.
My most important LFS lesson: Do not ignore the grey LFS symbol just because it looks small and harmless.
And track large files before committing them. If a large file is already part of the repository history, activating LFS afterwards may not be enough because the original file can still remain in earlier commits.
My main learning was: Yes, that little grey symbol was necessary. I thought I did not need it. Git taught me otherwise.
Let’s see what happens next….