The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Errors when attempting to switch branches & when pushing Github

Cole
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 16, 2023

Hey all! 

Alright so super noob here I was attempting to use Sourctree (and github) as a means of source control for my project in Unreal Engine 5. The first couple commits & pushes were fine as I had no large files. 

Eventually once I had some larger files I got the initial stage error/warning saying I had large files, I ignored this as I did want those files to be included - many of them are vital to the overall functioning of the project. However, when I would actually try and push (after staging and committing) I'd get post buffer errors and would ignore the issue (leaving it as a commit pretty much). 

Fast forward to tonight I have three branches: Main, Combat, ALS. Combat is where my previous three commits are and ALS was a new branch I made as I was about to start working on a new system that may or not break a lot of things. I tried pushing per usual and once again got a post buffer error, however this time it recommended I try git LFS, great! 

Downloaded git LFS and seemingly set it up (as I'm new to git I can never really tell), and then double-clicked on my combat branch... wait did I just swap branches? 

Booted up my project and yeah, I went back to a commit when I swapped branches, from what I can tell at least, from many days ago. Now when I attempt to swap back over to the ALS branch where I actually need to do the work, and where all my progress up to now is stored, I get the following error (see image). image_2023-06-16_034006296.png

I've tried looking up solutions already but they all seem risky for a noob like me and I'd rather not lose days of work because of a stupid mistake. 

 

So a couple things I'm looking for: 
1. How do I fix the error in the image? 
2. In the future what can I do to prevent postbuffer/LFS errors? I tried pushing once I had LFS installed but it didn't really seem to do me any good. Do I need to manually choose which files are sent to LFS vs git ?


Sorry for the ramble and thanks for your help!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Martin Runge
Community Champion
August 27, 2026

Hi @Cole - Nova - Andrews

I know this thread is old, so this may only help others landing here.

Nothing is lost. Git blocks the checkout because those .ini files are untracked in your working copy, whereas ALS has committed versions of them.

Those files under Saved/Config/WindowsEditor are regenerated by Unreal, so they are safe to move. Close Unreal, move the Saved folder aside, then switch to ALS. Your work will be there.

Then add Saved/, Intermediate/, Binaries/, and DerivedDataCache/ to .gitignore so it stops being repeated. Unreal ships a template .gitignore that covers this.

On LFS, installing it does not fix past commits. You track patterns like .uasset first, then run git lfs migrate to rewrite existing history. Raising http.postBuffer only hides the real limit, which is GitHub's 100 MB per file.

Did you get the branch back?

Cheers, Martin

TAGS
AUG Leaders

Atlassian Community Events