What folders are necessary when pushing an unreal project in Git?

I am new to unreal and when I push the Unreal Project it takes a very long time. To fix this, I was thinking to push only necessary folders. Does anyone know what the bare minimum folders would be?
My thoughts were:
-the .UProject file

Any thoughts?

Thanks everyone!

Here’s a .gitignore file I found somewhere for Unreal projects, didn’t have any problems with it so far.