Skip to main content

Command Palette

Search for a command to run...

Resolve Git local changes to the following files would be overwritten

Updated
โ€ข1 min readโ€ขView as Markdown
Resolve Git local changes to the following files would be overwritten
J
Hi there! I'm a Cloud Engineer & SRE, documenting my transition into AI/ML Platform Engineering. I write technical deep-dives, hands-on implementation guides, CLI helper scripts, and visual architectures covering cloud, infrastructure, orchestration, governance, and modern AI runtimes.

I ran into a new conflict using git today that took a bit of wrangling ๐Ÿค 

"๐—ฌ๐—ผ๐˜‚๐—ฟ ๐—น๐—ผ๐—ฐ๐—ฎ๐—น ๐—ฐ๐—ต๐—ฎ๐—ป๐—ด๐—ฒ๐˜€ ๐˜๐—ผ ๐˜๐—ต๐—ฒ ๐—ณ๐—ผ๐—น๐—น๐—ผ๐˜„๐—ถ๐—ป๐—ด ๐—ณ๐—ถ๐—น๐—ฒ๐˜€ ๐˜„๐—ผ๐˜‚๐—น๐—ฑ ๐—ฏ๐—ฒ ๐—ผ๐˜ƒ๐—ฒ๐—ฟ๐˜„๐—ฟ๐—ถ๐˜๐˜๐—ฒ๐—ป ๐—ฏ๐˜† ๐—บ๐—ฒ๐—ฟ๐—ด๐—ฒ"

I didn't have any changes to commit locally, particularly not on the specified file, nor was anything stashed in my local branch. Despite this, Git continued to prevent me from pulling my latest commits to my master branch so that I could perform a rebase.

I tried the following to rectify this:

git pull
git pull --force
git pull origin --force
git stash pop
git stash
git stash drop
git merge --ff-only origin/master
git pull origin master
git reset HEAD

But none of these โฌ†๏ธ worked.

The solution for me was to:

git checkout path/to/file/to/revert
git reset HEAD path/to/file/to/revert
git pull

I was then able to switch back to my local branch, rebase the master branch, fix some conflicts and move on with my day ๐Ÿ˜Ž

Have you run into this particular scenario before? Any other suggested commands that worked for you?

DevEx

Part 7 of 7

Focuses on hands-on developer experience, CLI utilities and tooling, agentic workflows, and real-world implementation guides. Features standalone administrative helper scripts (Boto3 SDK scripts, AWS search utilities, shell tools), local environment debugging, IaC state visualization tools, and agentic developer workflows (Cursor IDE setups, uv environments, custom MCP integrations).

Start from the beginning

AWS S3 Object Finder | Boto3 Script

Overview ๐Ÿ”Ž Quickly find AWS S3 Objects inside buckets hosting huge volumes of files using my latest Boto3 script! You can easily locate specific objects in your AWS profile by providing a few command

More from this blog

Jenna's Runbooks

24 posts

Documenting cloud operations, developer tooling, and AI infrastructure. Content is organized into four main sections: Platform & AI Infrastructure (runtimes, K8s, kernel tuning), MLOps & Reliability (Terraform IaC, FinOps, security, automation), Cloud Architectures (multi-cloud blueprints & system design), and DevEx (CLI utilities, agentic workflows).