I started a new 3D URP project in a Git-Hub repository but had trouble making the initial commit

Hi. I created a new Git-Hub repo, then started a new 3D URP project in it. However, I had trouble trying to make the first commit. First, I received an error message that a file was too big (over 100mg). So, I deleted the file. I tried committing again but received a long error message. The last line indicated that the file path was too big. Maybe the repo name was too long?
Has anyone else experienced these problems? Might it have something to do with a URP project (as opposed to the built-in render pipeline)?
I would appreciate advice, thank you.

GitHub usually blocks files that are larger than 100 MiB (src). Utilize Git Large File Storage (LFS) to bypass that limitation.

As for “filename too long”, try this possible solution. (If using GitHub Desktop, read this).

And use the .gitignore file for Unity to exclude stuff like your project’s Library folder that you don’t want to commit (and shouldn’t).

Sounds like you already commited the large file. Even though its been deleted, its already being tracked in a commit. You have to rollback to before you commited it, remove the file, then create a fresh commit that doesn’t include it.

This happens fairly frequently if you import packages. It’s good practice to check any files you think might come close to 100MB, usually it’s textures or raw files. There can also be other Unity stuff you should never include, which Mauri mentioned can be solved with a gitignore.

this is the .gitingore file i use its a modifed version of githubs just make a file name .gitingore at the top folder of your project and paste this in

# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
#
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/
[Bb]uilds/
[Ll]ogs/
[Uu]ser[Ss]ettings/

# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
[Mm]emoryCaptures/

# Recordings can get excessive in size
[Rr]ecordings/

# Uncomment this line if you wish to ignore the asset store tools plugin
# /[Aa]ssets/AssetStoreTools*

# Autogenerated Jetbrains Rider plugin
[Aa]ssets/Plugins/Editor/JetBrains*

# Visual Studio cache directory
.vs/
.vsconfig/

# MonoCrash
mono_crash.0.0.json/

# Upgrade Log
UpgradeLog.htm/

# Gradle cache directory
.gradle/

# DS_STORE
.DS_Store/

# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db

# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta

# Unity3D generated file on crash reports
sysinfo.txt

# Builds
*.apk
*.aab
*.unitypackage
*.app

# Crashlytics generated file
crashlytics-build.properties

# Packed Addressables
[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*

# Temporary auto-generated Android Assets
[Aa]ssets/[Ss]treamingAssets/aa.meta
[Aa]ssets/[Ss]treamingAssets/aa/*

Thank you all for being kind and helpful. :slightly_smiling_face:
I will try to implement your suggestions.