Github LFS x Unity - Still can't push repo - unity3d

I've tried to push my unity repo to my github but since the files are so large I thought to use LFS. Installed LFS, ran git lfs install in the terminal, add, commit and push, and I get the following errors:
remote: Resolving deltas: 100% (18056/18056), done.
remote: warning: File Library/PackageCache/com.unity.burst#1.6.0/.Runtime/hostlin/lld is 57.95 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: File Library/PackageCache/com.unity.burst#1.6.0/.Runtime/hostmac/dsymutil is 64.13 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: File Library/PackageCache/com.unity.burst#1.6.0/.Runtime/libburst-llvm-11.dylib is 87.83 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: Trace: f9eeba7df30d8a51c6584e8ac73a6622802080d5c56fc4191126526d0b7a055c
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File Library/PackageCache/com.unity.burst#1.6.0/.Runtime/hostmac/lld is 106.20 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File Assets/Firebase/Plugins/x86_64/FirebaseCppApp-8_0_0.so is 118.99 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
In my root i've got a classic .gitignore:
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/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/
# Asset meta data should only be ignored when the corresponding asset is also ignored
!/[Aa]ssets/**/*.meta
# 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/
# Gradle cache directory
.gradle/
# 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
# 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/*
and a classic .gitattributes
# Image formats:
*.tga filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.tif filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
# Audio formats:
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.aiff filter=lfs diff=lfs merge=lfs -text
# 3D model formats:
*.fbx filter=lfs diff=lfs merge=lfs -text
*.obj filter=lfs diff=lfs merge=lfs -text
# Unity formats:
*.sbsar filter=lfs diff=lfs merge=lfs -text
*.unity filter=lfs diff=lfs merge=lfs -text
# Other binary formats
*.dll filter=lfs diff=lfs merge=lfs -text
Am I missing something to initialise LFS ? it seems it's trying to push the repo without using LFS..
Thanks!

Installing LFS only affects new commits. You'll have to rewrite the repo to move the old files to LFS as well:
https://edwardthomson.com/blog/advent_day_23_removing_large_binaries_with_lfs.html
It's safest to do a fresh git clone --mirror for a few reasons:
You can do a mirror clone, which will clone the remote into a bare repository locally so that you don't check out all your large files unnecessarily. It will also get all the remote branches and tags, and set up remote tracking branches so that you can safely perform a force push.
git clone --mirror git#github.com:ethomson/repo.git
git lfs migrate import --everything
git reflog expire --expire=now --all
git gc --prune=now --aggressive
git push --mirror --force
WARNING This will change your history. Make sure all outstanding work is synchronized and all developers on your repo sync their repo before continuing to work.
Get your users to reclone their repositories. I am generally loathe to encourage people to ever do this - a lot of people follow the delete and re-clone strategy when something goes wrong in their work and it's quite an anti-pattern. There are really no problems in Git that are so hairy that you need to get rid of the repository and start over; solving these problems without doing that will really level-up your Git knowledge.
This is the exception - we've rewritten every branch and there's no simple way to update. Instead, cloning a new copy of the repository is the right way to go. (Bonus: it's now much quicker to clone the repository since you don't have all those messy binaries.)

Related

Unable to push github package for nuget (404) [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 months ago.
Improve this question
I am unable to push a nuget package to GitHub
The following question is nearly identical
Publishing and Consuming GitHub Package Repository with NuGet: Unable to load the service index error
The answer was very helpful as it indicated that the GitHub documentation was out of date. So I followed the revised instructions and still no joy.
I try to push with...
nuget push -source https://nuget.pkg.github.com/mycompany/index.json .\bin\Release\mynugetpackage.1.0.0.nupkg -apikey xxxaaabbb
and the error I get is...
Pushing mynugetpackage.1.0.0.nupkg to 'https://nuget.pkg.github.com/mycompany'...
PUT https://nuget.pkg.github.com/mycompany/
NotFound
https://nuget.pkg.github.com/mycompany/ 471ms
which seems to indicate that the mycompany GitHub package repository does not exist. But the GitHub organization mycompany certainly exists. It seems as though I need to initialize the package repository for mycompany, but I can't find any documentation on how to do that.
The issue is apparently you cannot push packages to repositories that are private. As soon as I turned the visibility on my repository public, I could push a package.
This seems like a bug. Certainly nowhere in the documentation does this restriction appear.
You should be able to push packages to private repositories.
UPDATE
It turns out the real problem was the scope of my personal access token. The scope was set to read and write packages but repo scope also required to push a package to a private repo.
this may be an issue with github.com
last week I was able to publish to ttps://nuget.pkg.github.com but today it gives the error described above
I have experienced a similar issue last month with pushing to the GitHub docker registry, it was intermittent failing about 8/10 times
Github actions log:
2021-01-21T21:34:45.3916558Z ##[section]Starting: Request a runner to run this job
2021-01-21T21:34:45.8756042Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2021-01-21T21:34:46.0149753Z Can't find any online and idle self-hosted runner in current repository's organization/enterprise account that matches the required labels: 'ubuntu-latest'
2021-01-21T21:34:46.2004629Z Found online and idle hosted runner in current repository's enterprise account that matches the required labels: 'ubuntu-latest'
2021-01-21T21:34:46.3573580Z ##[section]Finishing: Request a runner to run this job
2021-01-21T21:34:54.3282662Z Current runner version: '2.276.0'
2021-01-21T21:34:54.3308509Z ##[group]Operating System
2021-01-21T21:34:54.3309244Z Ubuntu
2021-01-21T21:34:54.3309623Z 18.04.5
2021-01-21T21:34:54.3309934Z LTS
2021-01-21T21:34:54.3310385Z ##[endgroup]
2021-01-21T21:34:54.3310766Z ##[group]Virtual Environment
2021-01-21T21:34:54.3311214Z Environment: ubuntu-18.04
2021-01-21T21:34:54.3311652Z Version: 20201210.0
2021-01-21T21:34:54.3312271Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20201210.0/images/linux/Ubuntu1804-README.md
2021-01-21T21:34:54.3312886Z ##[endgroup]
2021-01-21T21:34:54.3314036Z Prepare workflow directory
2021-01-21T21:34:54.3501965Z Prepare all required actions
2021-01-21T21:34:54.3511197Z Getting action download info
2021-01-21T21:34:54.6103985Z Download action repository 'actions/checkout#v2'
2021-01-21T21:34:56.5627897Z Download action repository 'booxmedialtd/ws-action-parse-semver#v1'
2021-01-21T21:34:58.3019389Z Download action repository 'roryprimrose/set-vs-sdk-project-version#v1'
2021-01-21T21:34:59.1877480Z Download action repository 'Rebel028/publish-nuget#v2.6.0'
2021-01-21T21:34:59.7995996Z ##[group]Run actions/checkout#v2
2021-01-21T21:34:59.7996438Z with:
2021-01-21T21:34:59.7996838Z repository: SomeCompany/dotnetlib
2021-01-21T21:34:59.7997482Z token: ***
2021-01-21T21:34:59.7997761Z ssh-strict: true
2021-01-21T21:34:59.7998063Z persist-credentials: true
2021-01-21T21:34:59.7998351Z clean: true
2021-01-21T21:34:59.7998616Z fetch-depth: 1
2021-01-21T21:34:59.7998881Z lfs: false
2021-01-21T21:34:59.7999152Z submodules: false
2021-01-21T21:34:59.7999421Z env:
2021-01-21T21:34:59.7999782Z PACKAGE_ID: SomeCompany.DotNetLib
2021-01-21T21:34:59.8000168Z ##[endgroup]
2021-01-21T21:35:00.2300965Z Syncing repository: SomeCompany/dotnetlib
2021-01-21T21:35:00.2301730Z ##[group]Getting Git version info
2021-01-21T21:35:00.2302608Z Working directory is '/home/runner/work/dotnetlib/dotnetlib'
2021-01-21T21:35:00.2366579Z [command]/usr/bin/git version
2021-01-21T21:35:00.2518653Z git version 2.29.2
2021-01-21T21:35:00.2541336Z ##[endgroup]
2021-01-21T21:35:00.2549508Z Deleting the contents of '/home/runner/work/dotnetlib/dotnetlib'
2021-01-21T21:35:00.2557721Z ##[group]Initializing the repository
2021-01-21T21:35:00.2562551Z [command]/usr/bin/git init /home/runner/work/dotnetlib/dotnetlib
2021-01-21T21:35:00.2643082Z Initialized empty Git repository in /home/runner/work/dotnetlib/dotnetlib/.git/
2021-01-21T21:35:00.2655569Z [command]/usr/bin/git remote add origin https://github.com/SomeCompany/dotnetlib
2021-01-21T21:35:00.2699895Z ##[endgroup]
2021-01-21T21:35:00.2700600Z ##[group]Disabling automatic garbage collection
2021-01-21T21:35:00.2705024Z [command]/usr/bin/git config --local gc.auto 0
2021-01-21T21:35:00.2744609Z ##[endgroup]
2021-01-21T21:35:00.2749309Z ##[group]Setting up auth
2021-01-21T21:35:00.2757117Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-01-21T21:35:00.2796014Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-01-21T21:35:00.3303803Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-01-21T21:35:00.3319220Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-01-21T21:35:00.3590923Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2021-01-21T21:35:00.3639230Z ##[endgroup]
2021-01-21T21:35:00.3639608Z ##[group]Fetching the repository
2021-01-21T21:35:00.3652890Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +141b682a377522b2dee30e48768f71d2fcd61024:refs/tags/v1.0.0-rc.1
2021-01-21T21:35:00.7274685Z remote: Enumerating objects: 12, done.
2021-01-21T21:35:00.7275111Z remote: Counting objects: 8% (1/12)
2021-01-21T21:35:00.7275486Z remote: Counting objects: 16% (2/12)
2021-01-21T21:35:00.7275832Z remote: Counting objects: 25% (3/12)
2021-01-21T21:35:00.7276200Z remote: Counting objects: 33% (4/12)
2021-01-21T21:35:00.7276548Z remote: Counting objects: 41% (5/12)
2021-01-21T21:35:00.7276902Z remote: Counting objects: 50% (6/12)
2021-01-21T21:35:00.7277241Z remote: Counting objects: 58% (7/12)
2021-01-21T21:35:00.7277583Z remote: Counting objects: 66% (8/12)
2021-01-21T21:35:00.7277945Z remote: Counting objects: 75% (9/12)
2021-01-21T21:35:00.7278283Z remote: Counting objects: 83% (10/12)
2021-01-21T21:35:00.7278985Z remote: Counting objects: 91% (11/12)
2021-01-21T21:35:00.7279334Z remote: Counting objects: 100% (12/12)
2021-01-21T21:35:00.7279698Z remote: Counting objects: 100% (12/12), done.
2021-01-21T21:35:00.7280083Z remote: Compressing objects: 11% (1/9)
2021-01-21T21:35:00.7280456Z remote: Compressing objects: 22% (2/9)
2021-01-21T21:35:00.7280816Z remote: Compressing objects: 33% (3/9)
2021-01-21T21:35:00.7281171Z remote: Compressing objects: 44% (4/9)
2021-01-21T21:35:00.7281574Z remote: Compressing objects: 55% (5/9)
2021-01-21T21:35:00.7281934Z remote: Compressing objects: 66% (6/9)
2021-01-21T21:35:00.7282301Z remote: Compressing objects: 77% (7/9)
2021-01-21T21:35:00.7282653Z remote: Compressing objects: 88% (8/9)
2021-01-21T21:35:00.7283020Z remote: Compressing objects: 100% (9/9)
2021-01-21T21:35:00.7283390Z remote: Compressing objects: 100% (9/9), done.
2021-01-21T21:35:00.7329472Z remote: Total 12 (delta 0), reused 8 (delta 0), pack-reused 0
2021-01-21T21:35:00.7448310Z From https://github.com/SomeCompany/dotnetlib
2021-01-21T21:35:00.7460101Z * [new ref] 141b682a377522b2dee30e48768f71d2fcd61024 -> v1.0.0-rc.1
2021-01-21T21:35:00.7479921Z ##[endgroup]
2021-01-21T21:35:00.7484449Z ##[group]Determining the checkout info
2021-01-21T21:35:00.7502460Z ##[endgroup]
2021-01-21T21:35:00.7503178Z ##[group]Checking out the ref
2021-01-21T21:35:00.7504309Z [command]/usr/bin/git checkout --progress --force refs/tags/v1.0.0-rc.1
2021-01-21T21:35:00.7638510Z Note: switching to 'refs/tags/v1.0.0-rc.1'.
2021-01-21T21:35:00.7639229Z
2021-01-21T21:35:00.7639861Z You are in 'detached HEAD' state. You can look around, make experimental
2021-01-21T21:35:00.7640341Z changes and commit them, and you can discard any commits you make in this
2021-01-21T21:35:00.7640820Z state without impacting any branches by switching back to a branch.
2021-01-21T21:35:00.7641103Z
2021-01-21T21:35:00.7641464Z If you want to create a new branch to retain commits you create, you may
2021-01-21T21:35:00.7642105Z do so (now or later) by using -c with the switch command. Example:
2021-01-21T21:35:00.7642360Z
2021-01-21T21:35:00.7642804Z git switch -c <new-branch-name>
2021-01-21T21:35:00.7643001Z
2021-01-21T21:35:00.7643274Z Or undo this operation with:
2021-01-21T21:35:00.7643454Z
2021-01-21T21:35:00.7643696Z git switch -
2021-01-21T21:35:00.7643860Z
2021-01-21T21:35:00.7644217Z Turn off this advice by setting config variable advice.detachedHead to false
2021-01-21T21:35:00.7644514Z
2021-01-21T21:35:00.7644756Z HEAD is now at 141b682 ...
2021-01-21T21:35:00.7645185Z ##[endgroup]
2021-01-21T21:35:00.7685657Z [command]/usr/bin/git log -1 --format='%H'
2021-01-21T21:35:00.7727367Z '141b682a377522b2dee30e48768f71d2fcd61024'
2021-01-21T21:35:00.7894232Z ##[group]Run booxmedialtd/ws-action-parse-semver#v1
2021-01-21T21:35:00.7894594Z with:
2021-01-21T21:35:00.7895013Z input_string: refs/tags/v1.0.0-rc.1
2021-01-21T21:35:00.7895356Z version_extractor_regex: \/v(.*)$
2021-01-21T21:35:00.7895630Z env:
2021-01-21T21:35:00.7896004Z PACKAGE_ID: SomeCompany.DotNetLib
2021-01-21T21:35:00.7896376Z ##[endgroup]
2021-01-21T21:35:00.8414806Z ##[group]Run roryprimrose/set-vs-sdk-project-version#v1
2021-01-21T21:35:00.8415184Z with:
2021-01-21T21:35:00.8415451Z version: 1.0.0-rc.1
2021-01-21T21:35:00.8415737Z projectFilter: **/*.*proj
2021-01-21T21:35:00.8416020Z env:
2021-01-21T21:35:00.8416382Z PACKAGE_ID: SomeCompany.DotNetLib
2021-01-21T21:35:00.8416754Z ##[endgroup]
2021-01-21T21:35:00.8898305Z
2021-01-21T21:35:00.8902954Z Finding projects matching **/*.*proj
2021-01-21T21:35:00.8903728Z
2021-01-21T21:35:00.8904768Z Updating project files with the following version information
2021-01-21T21:35:00.8905926Z Version: 1.0.0-rc.1
2021-01-21T21:35:00.9147733Z
2021-01-21T21:35:00.9148630Z
2021-01-21T21:35:00.9150282Z Found project at /home/runner/work/dotnetlib/dotnetlib/SomeCompany.DotNetLib.csproj
2021-01-21T21:35:00.9214137Z Updating Version with the value 1.0.0-rc.1
2021-01-21T21:35:00.9338470Z ##[group]Run Rebel028/publish-nuget#v2.6.0
2021-01-21T21:35:00.9338809Z with:
2021-01-21T21:35:00.9339233Z PROJECT_FILE_PATH: SomeCompany.DotNetLib.csproj
2021-01-21T21:35:00.9339802Z PACKAGE_NAME: SomeCompany.DotNetLib
2021-01-21T21:35:00.9340196Z VERSION_STATIC: 1.0.0-rc.1
2021-01-21T21:35:00.9340487Z TAG_COMMIT: false
2021-01-21T21:35:00.9340998Z NUGET_KEY: ***
2021-01-21T21:35:00.9341382Z NUGET_SOURCE: https://nuget.pkg.github.com/SomeCompany
2021-01-21T21:35:00.9341752Z INCLUDE_SYMBOLS: true
2021-01-21T21:35:00.9342089Z VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
2021-01-21T21:35:00.9342396Z TAG_FORMAT: v*
2021-01-21T21:35:00.9342684Z THOW_ERROR_IF_VERSION_EXISTS: false
2021-01-21T21:35:00.9342970Z env:
2021-01-21T21:35:00.9343339Z PACKAGE_ID: SomeCompany.DotNetLib
2021-01-21T21:35:00.9343717Z ##[endgroup]
2021-01-21T21:35:00.9775191Z executing: [dotnet nuget add source https://nuget.pkg.github.com/SomeCompany/index.json --name=default --username=myusername --*** --store-password-in-clear-text]
2021-01-21T21:35:06.7366050Z
2021-01-21T21:35:06.7367012Z Welcome to .NET 5.0!
2021-01-21T21:35:06.7368084Z ---------------------
2021-01-21T21:35:06.7368567Z SDK Version: 5.0.101
2021-01-21T21:35:06.7368847Z
2021-01-21T21:35:06.7369182Z Telemetry
2021-01-21T21:35:06.7369688Z ---------
2021-01-21T21:35:06.7370951Z The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
2021-01-21T21:35:06.7371688Z
2021-01-21T21:35:06.7372790Z Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
2021-01-21T21:35:06.7373918Z
2021-01-21T21:35:06.7374511Z ----------------
2021-01-21T21:35:06.7376693Z Installed an ASP.NET Core HTTPS development certificate.
2021-01-21T21:35:06.7377623Z To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
2021-01-21T21:35:06.7378410Z Learn about HTTPS: https://aka.ms/dotnet-https
2021-01-21T21:35:06.7378989Z ----------------
2021-01-21T21:35:06.7379654Z Write your first app: https://aka.ms/dotnet-hello-world
2021-01-21T21:35:06.7380378Z Find out what's new: https://aka.ms/dotnet-whats-new
2021-01-21T21:35:06.7381101Z Explore documentation: https://aka.ms/dotnet-docs
2021-01-21T21:35:06.7381671Z Report issues and find source on GitHub: https://github.com/dotnet/core
2021-01-21T21:35:06.7382498Z Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
2021-01-21T21:35:06.7383338Z --------------------------------------------------------------------------------------
2021-01-21T21:35:06.7384192Z Package source with Name: default added successfully.
2021-01-21T21:35:06.7384535Z
2021-01-21T21:35:06.7385018Z executing: [dotnet nuget list source]
2021-01-21T21:35:07.1692751Z executing: [dotnet nuget enable source default]
2021-01-21T21:35:07.5291185Z Registered Sources:
2021-01-21T21:35:07.5292077Z 1. nuget.org [Enabled]
2021-01-21T21:35:07.5292659Z https://api.nuget.org/v3/index.json
2021-01-21T21:35:07.5293185Z 2. default [Enabled]
2021-01-21T21:35:07.5293747Z https://nuget.pkg.github.com/SomeCompany/index.json
2021-01-21T21:35:07.5294201Z
2021-01-21T21:35:07.5294807Z Package source with Name: default enabled successfully.
2021-01-21T21:35:07.5295227Z
2021-01-21T21:35:07.5295832Z Project Filepath: SomeCompany.DotNetLib.csproj
2021-01-21T21:35:07.5297066Z Version: 1.0.0-rc.1
2021-01-21T21:35:07.5297721Z Package Name: SomeCompany.DotNetLib
2021-01-21T21:35:07.5298527Z This is GPR, changing url for versioning...
2021-01-21T21:35:07.5299334Z https://nuget.pkg.github.com/SomeCompany/download/SomeCompany.DotNetLib/index.json
2021-01-21T21:35:07.8163314Z Status code: 200: OK
2021-01-21T21:35:07.8185105Z This version is new, pushing...
2021-01-21T21:35:07.8191136Z ✨ found new version (1.0.0-rc.1) of SomeCompany.DotNetLib
2021-01-21T21:35:07.8191771Z NuGet Source: https://nuget.pkg.github.com/SomeCompany
2021-01-21T21:35:07.8196344Z executing: [dotnet build -c Release SomeCompany.DotNetLib.csproj]
2021-01-21T21:35:08.4553400Z Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET
2021-01-21T21:35:08.4554845Z Copyright (C) Microsoft Corporation. All rights reserved.
2021-01-21T21:35:08.4556123Z
2021-01-21T21:35:11.6713234Z Determining projects to restore...
2021-01-21T21:35:26.7150347Z Restored /home/runner/work/dotnetlib/dotnetlib/SomeCompany.DotNetLib.csproj (in 13.99 sec).
2021-01-21T21:35:34.6009835Z SomeCompany.DotNetLib -> /home/runner/work/dotnetlib/dotnetlib/bin/Release/net5.0/SomeCompany.DotNetLib.dll
2021-01-21T21:35:34.6269565Z
2021-01-21T21:35:34.6270770Z Build succeeded.
2021-01-21T21:35:34.6271286Z 0 Warning(s)
2021-01-21T21:35:34.6271770Z 0 Error(s)
2021-01-21T21:35:34.6272149Z
2021-01-21T21:35:34.6272697Z Time Elapsed 00:00:25.92
2021-01-21T21:35:34.6481756Z executing: [dotnet pack --include-symbols -p:SymbolPackageFormat=snupkg --no-build -c Release SomeCompany.DotNetLib.csproj -o .]
2021-01-21T21:35:34.9172951Z Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET
2021-01-21T21:35:34.9173542Z Copyright (C) Microsoft Corporation. All rights reserved.
2021-01-21T21:35:34.9173794Z
2021-01-21T21:35:36.4807333Z Successfully created package '/home/runner/work/dotnetlib/dotnetlib/SomeCompany.DotNetLib.1.0.0-rc.1.nupkg'.
2021-01-21T21:35:36.4848834Z Successfully created package '/home/runner/work/dotnetlib/dotnetlib/SomeCompany.DotNetLib.1.0.0-rc.1.snupkg'.
2021-01-21T21:35:36.5067101Z Generated Package(s): SomeCompany.DotNetLib.1.0.0-rc.1.nupkg, SomeCompany.DotNetLib.1.0.0-rc.1.snupkg
2021-01-21T21:35:36.5069263Z executing: [dotnet nuget push *.nupkg -s default -k *** --skip-duplicate ]
2021-01-21T21:35:37.3597726Z Pushing SomeCompany.DotNetLib.1.0.0-rc.1.nupkg to 'https://nuget.pkg.github.com/SomeCompany'...
2021-01-21T21:35:37.3598984Z PUT https://nuget.pkg.github.com/SomeCompany/
2021-01-21T21:35:37.3599634Z NotFound https://nuget.pkg.github.com/SomeCompany/ 338ms
2021-01-21T21:35:37.3600286Z error: Response status code does not indicate success: 404 (Not Found).
2021-01-21T21:35:37.3600703Z
2021-01-21T21:35:37.3600985Z
2021-01-21T21:35:37.3601498Z Usage: dotnet nuget push [arguments] [options]
2021-01-21T21:35:37.3601816Z
2021-01-21T21:35:37.3602568Z Arguments:
2021-01-21T21:35:37.3603118Z [root] Specify the path to the package and your API key to push the package to the server.
2021-01-21T21:35:37.3603564Z
2021-01-21T21:35:37.3603940Z Options:
2021-01-21T21:35:37.3604746Z -h|--help Show help information
2021-01-21T21:35:37.3606487Z --force-english-output Forces the application to run using an invariant, English-based culture.
2021-01-21T21:35:37.3607832Z -s|--source <source> Package source (URL, UNC/folder path or package source name) to use. Defaults to DefaultPushSource if specified in NuGet.Config.
2021-01-21T21:35:37.3608849Z -ss|--symbol-source <source> Symbol server URL to use.
2021-01-21T21:35:37.3609757Z -t|--timeout <timeout> Timeout for pushing to a server in seconds. Defaults to 300 seconds (5 minutes).
2021-01-21T21:35:37.3610641Z -k|--api-key <apiKey> The API key for the server.
2021-01-21T21:35:37.3611427Z -sk|--symbol-api-key <apiKey> The API key for the symbol server.
2021-01-21T21:35:37.3612676Z -d|--disable-buffering Disable buffering when pushing to an HTTP(S) server to decrease memory usage.
2021-01-21T21:35:37.3613901Z -n|--no-symbols If a symbols package exists, it will not be pushed to a symbols server.
2021-01-21T21:35:37.3614890Z --no-service-endpoint Does not append "api/v2/package" to the source URL.
2021-01-21T21:35:37.3615882Z --interactive Allow the command to block and require manual action for operations like authentication.
2021-01-21T21:35:37.3617012Z --skip-duplicate If a package and version already exists, skip it and continue with the next package in the push, if any.
2021-01-21T21:35:37.3617477Z
2021-01-21T21:35:37.3619162Z /home/runner/work/_actions/Rebel028/publish-nuget/v2.6.0/index.js:44
2021-01-21T21:35:37.3621869Z ##[error]😭 error: Response status code does not indicate success: 404 (Not Found).
2021-01-21T21:35:37.3625811Z throw new Error(msg)
2021-01-21T21:35:37.3626167Z ^
2021-01-21T21:35:37.3626367Z
2021-01-21T21:35:37.3626876Z Error: error: Response status code does not indicate success: 404 (Not Found).
2021-01-21T21:35:37.3627925Z at Action._printErrorAndExit (/home/runner/work/_actions/Rebel028/publish-nuget/v2.6.0/index.js:44:15)
2021-01-21T21:35:37.3628867Z at Action._pushPackage (/home/runner/work/_actions/Rebel028/publish-nuget/v2.6.0/index.js:95:18)
2021-01-21T21:35:37.3629749Z at IncomingMessage.<anonymous> (/home/runner/work/_actions/Rebel028/publish-nuget/v2.6.0/index.js:151:30)
2021-01-21T21:35:37.3630357Z at IncomingMessage.emit (events.js:215:7)
2021-01-21T21:35:37.3630839Z at endReadableNT (_stream_readable.js:1184:12)
2021-01-21T21:35:37.3631353Z at processTicksAndRejections (internal/process/task_queues.js:80:21)
2021-01-21T21:35:37.3712765Z Post job cleanup.
2021-01-21T21:35:37.4744452Z [command]/usr/bin/git version
2021-01-21T21:35:37.4819055Z git version 2.29.2
2021-01-21T21:35:37.4865812Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-01-21T21:35:37.4915283Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-01-21T21:35:37.5248078Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-01-21T21:35:37.5274602Z http.https://github.com/.extraheader
2021-01-21T21:35:37.5286498Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2021-01-21T21:35:37.5335820Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-01-21T21:35:37.5770506Z Cleaning up orphan processes
2021-01-21T21:35:37.6317787Z Terminate orphan process: pid (2841) (dotnet)
As you can see:
2021-01-21T21:35:07.5299334Z https://nuget.pkg.github.com/SomeCompany/download/SomeCompany.DotNetLib/index.json
2021-01-21T21:35:07.8163314Z Status code: 200: OK
2021-01-21T21:35:07.8185105Z This version is new, pushing...
the registry exists and a list of versions can be retrieved
2021-01-21T21:35:37.3597726Z Pushing SomeCompany.DotNetLib.1.0.0-rc.1.nupkg to 'https://nuget.pkg.github.com/SomeCompany'...
2021-01-21T21:35:37.3598984Z PUT https://nuget.pkg.github.com/SomeCompany/
2021-01-21T21:35:37.3599634Z NotFound https://nuget.pkg.github.com/SomeCompany/ 338ms
2021-01-21T21:35:37.3600286Z error: Response status code does not indicate success: 404 (Not Found).
but the push fails
You many need to check that your Repository Url in your project is set correctly. Nuget Push always returning 404 (Not Found)
I had this error and was able to solve it by fixing my repo url.

git status working directory nothing to commit, working directory to clean, add , commit NO GO

---I have the same problem but the fix does not seem to work.
I cloned a new repository. From it, I
a. created a new branch with git checkout -b
b. We updated our files in one of the directories, call it GAWBE
c. did our push to that branch
d. inspected the branch on the github.com site, It was fine
Then, I had to update files in a different directory to the master branch.
Call the directory PDBE
Thus, I did
git checkout master
went to the PDBE directory
updated several files there
did the git status
(I got the message
On branch master
nothing to commit, working directory clean
as indicated above)
I did the git branch --set-upstream-to origin/master
Got the message
Branch master set up to track remote branch master from origin.
f. I then did git status
Again, I got
# On branch master
nothing to commit, working directory clean
I tried
git pull origin
From https://github.com/doctorleff/u3e
*branch master -> FETCH_HEAD
Already up to date.
h. I tried git status again with the same working directoyr clean message
and git commit with the same message
Needless to say, I alo checked my .gitignore and .git/info/exclude
Nothing in the latter--former does not specify any of the files in question,
all .java
This as per the Issue 37269222
Also tried the rm -rf .git (Issue 37900326)
also tried git log as per issue 29578546, got error message:
fatal: bad default revision 'HEAD'
Thank you for suggesting that I create a minimal file to show the problem
with my branches and git hub.
On github, I created a new repository. (It is marked public.)
(It is doctorleff/TR
1) I created a directory TR to serve as my repository.
2) I put a single file there IncomeFile.java
3) git init
Told me Initialized empty Git repository in /home/leffstudent/TR/.git
4) git add IncomeFile.java
5) Created gitignore with *.class
6) git add .gitignore
7) git status told me
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: .gitignore
# new file: IncomeFile.java
8) `git commit -m "first commit"
Response was:
[master (root-commit) 6e71c52] first commit
2 files changed, 37 insertions(+)
create mode 100644 .gitignore
create mode 100644 IncomeFile.java
8) git remote add origin https:/github.com/doctorleff/TR.git
9) git push -u origin master
It asked me for my git login and password, then told me
Counting ojbects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done
Writing objects: 100% (4/4), 681 bytes | 0 bytes/s, done.
10) git checkout -b TOMCAT
Told me:
Switched to a new branch 'TOMCAT'
11) I changed IncomeFile.java slightly
12) git add IncomeFile.java
13) git commit -m "testing tomcat branch"
[TOMCAT 54f1b57] testing tomcat branch
1 file changed, 1 insertion(+), 1 deletion (-)
14) git push origin tomcat
Again, I was asked for my github username and passwrd.
Then it told me:
error: src refspect tomcat does not match any.
error: failed to push some refs to 'https://github.com/doctorleff/TR.git'
15) When I did a git status
$On branch TOMCAT
nothing to commit, working directory clean
Same thing if I simply type git status
I tried git check-ignore -v -- IncomeFile.java
Just get back the prompt
My test directory now seems to be working. Thus, I went back to the original cloned repository about which I spoke earlier.
I followed some of the instructions in
StackOverflow issue 4089430. (See link below)
I compared the results on both the working TEST repository and the
repository that does not work. It appears that the local repository
lost track of its remote.
I was thinking, should I do a git clone right into the defective
repositories to reconnect them to the world.
Meanwhile, I worked around my problem by cloning to a different computer,
a Macintosh. I am able to work normally with
the remote repository. Thus, I don't believe there is any problem with it.
And I have, a slightly less convenient, way to proceed with our project.
[How can I determine the URL that a local Git repository was originally cloned from?
I have two transcripts (edited slightly from script). The first is from
the test repository, that shows things working--
thanks for asking me to try that--
and then from the real one
cd TR
git remote show origin
* remote origin
Fetch URL: https://github.com/doctorleff/TR.git
Push URL: https://github.com/doctorleff/TR.git
HEAD branch: master
Remote branches:
TOMCAT tracked
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local refs configured for 'git push':
TOMCAT pushes to TOMCAT (up to date)
master pushes to master (up to date)
git remote show origin
* remote origin
Fetch URL: https://github.com/doctorleff/TR.git
Push URL: https://github.com/doctorleff/TR.git
HEAD branch: master
Remote branches:
TOMCAT tracked
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local refs configured for 'git push':
TOMCAT pushes to TOMCAT (up to date)
master pushes to master (up to date)
git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: IncomeFile.java
#
no changes added to commit (use "git add" and/or "git commit -a")
git checkout -- IncomeFile.java
git checkout TOMCAT
Switched to branch 'TOMCAT'
git status
# On branch TOMCAT
nothing to commit, working directory clean
VI IncomeFile.java
git commit -m "changed mC to Mc"
# On branch TOMCAT
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: IncomeFile.java
#
no changes added to commit (use "git add" and/or "git commit -a")
git add IncomeFile.java
git commit -m "changed mC to Mc"
[TOMCAT 7b842b0] changed mC to Mc
1 file changed, 1 insertion(+), 1 deletion(-)
push origin
fatal: The current branch TOMCAT has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin TOMCAT
git push --setu-upstream origin TOMCAT
Username for 'https://github.com': doctorleff
Password for 'https://doctorleff#github.com':
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 33% (1/3)
Compressing objects: 66% (2/3)
Compressing objects: 100% (3/3)
Compressing objects: 100% (3/3), done.
Writing objects: 33% (1/3)
Writing objects: 66% (2/3)
Writing objects: 100% (3/3)
Writing objects: 100% (3/3), 323 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 0% (0/1) remote: Resolving deltas: 100% (1/1) [K
remote: Resolving deltas: 100% (1/1), completed with 1 local object.[K
To https://github.com/doctorleff/TR.git
ff102ee..7b842b0 TOMCAT -> TOMCAT
Branch TOMCAT set up to track remote branch TOMCAT from origin.
git add IncomeFile.java
"change M[KCa to aC"
[TOMCAT 1a6739c] change Ca to aC
1 file changed, 1 insertion(+), 1 deletion(-)
git push origin
Username for 'https://github.com': doctorleff
Password for 'https://doctorleff#github.com':
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 33% (1/3)
Compressing objects: 66% (2/3)
Compressing objects: 100% (3/3)
Compressing objects: 100% (3/3), done.
Writing objects: 33% (1/3)
Writing objects: 66% (2/3)
Writing objects: 100% (3/3)
Writing objects: 100% (3/3), 324 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 0% (0/1) [K
remote: Resolving deltas: 100% (1/1) Resolving deltas: 100% (1/1), completed with 1 local object.[K
To https://github.com/doctorleff/TR.git
7b842b0..1a6739c TOMCAT -> TOMCAT
THUS, I then tried to go back to one of the repositories that was corrupted.
cd sv/web/src
git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
#LONG LIST OF FILES REMOVED for clarity
#
# Test.java
nothing added to commit but untracked files present (use "git add" to track)
git add Test.java
git commit -m "testing with Test.java"
[master (root-commit) 96c329f] testing with Test.java
1 file changed, 70 insertions(+)
create mode 100644 Test.java origin
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
git push --set-upstream origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
____________________________________________
git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# $
# .RatingEntryServletNew.java.swp
# 11in35tr.xls
# AdminFrontServlet.class
# AdminFrontServlet.java
# AgreementBackend.class
-- REST OF LONG LIST OF FILES GIVEN DELETED FOR BREVITY
nothing added to commit but untracked files present (use "git add" to track)
git remote show origin
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git config --get remote.origin.url
git remote -v
git ls-remote --get-r[Kurl
fatal: No remote configured to list refs from.
git ls-remote --get-url origin
origin
I also tried the git check-ignore -v -- on several files on the depository.
This was as suggested in the answer.
It just returns--I assume that means that these files are not affected by
any ignore rule.
____ response to VonC ___
In sv/web/src there is a .git subdirectory. FETCH_HEAD is zero bytes
HEAD syas refs: refs/heads/master That file exists and contains a long
hex code which I assume is a commit code, but I cannot find it at github.com.
The root (sv) also has a .git There, HEAD says refs/heads/tomcat
MY other local reposityory copy
sw/web/src also has a .git Its HEAD has
line ref: refs/heads/master But in that case, that file does not exist.
As suggested, I did try git remote -v on the two repositories in
question. Here is the output for sv
git remote -v
githubrepo https://github.com/doctorleff/u3e.git (fetch)
githubrepo https://github.com/doctorleff/u3e.git (push)
origin https://github.com/doctorleff/u3e.git (fetch)
origin https://github.com/doctorleff/u3e.git (push)
The second sw is showing that the repository is hopelessly corrupted:
git remote -v
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Since then, I have created a new local clone on this repository from github.
I went back and forth between the two branches and everything is OK.
Thus, please consider this matter closed as not reproducable and no longer
a problem for original poster.
~
I also checked my .gitignore and .git/info/exclude Nothing in the latter--former does not specify any of the files in question, all .java
Double-check with:
git check-ignore -v -- PDBE/yourFile
Sometime, gitignore rules can come from other sources (like an IDE).
The first push of the tomcat branch should be git push -u origin tomcat
If a repo is inside another one, it becomes a nested repo: it might not have an origin, while its parent (which includes said nested repo) have:
Do a git remote -v in each folder.
You can add a remote origin (in the nested repo folder) with git remote add origin /url/remote/repo. Then the push might work better.

warning: Clone succeeded, but checkout failed

C:\Users\User\Desktop>git clone https://github.com/XXXXXXXXXX.git
Cloning into 'one-piece'...
remote: Counting objects: 5463, done.
remote: Compressing objects: 100% (3600/3600), done.
remote: Total 5463 (delta 1539), reused 5359 (delta 1438), pack-reused 0
Receiving objects: 100% (5463/5463), 5.08 MiB | 1.38 MiB/s, done.
Resolving deltas: 100% (1539/1539), done.
Checking connectivity... done.
warning: unable to access 'hackathon/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb
/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/
node_modules/core-util-is/lib/.gitattributes': Filename too long
fatal: cannot create directory at 'hackathon/node_modules/noble/node_modules/bluetooth-hci-socket/node_mod
ules/usb/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable
-stream/node_modules/process-nextick-args': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
Try this out:
git config --system core.longpaths true
Source
The following answer worked for me
Open either cmd or git bash and run it as an administrator
Give the following command on the cmd or git bash which you ran as an administrator above
git config --system core.longpaths true
This will allow to access long file names globally
Now you can clone the repositories without any issue with Filename too long
Also check that the repository does not contain a folder called 'con' or 'prn' as these are reserved folders in Windows but are allowed in MacOS.
eg.
src/main/kotlin/con/ will break on a Windows machine
In my case this is how I solved it:
cd into the project directory and un-stage all staged files if any by running git reset
undo all changes in the working directory by running git checkout *
After doing the two steps you should be able to see the project files.

push failed error message github large files

I am trying to install google maps and a few different framework on GitHub.
I am currently using the mac desktop, and I am not understand what I am doing wrong.
Github Mac file error:
File Pods/CardIO/CardIO/libCardIO.a is 96.28 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
File Pods/CardIO/CardIO/libopencv_core.a is 83.71 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
File Pods/CardIO/CardIO/libopencv_imgproc.a is 96.08 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
File Pods/PayPal-iOS-SDK/PayPalMobile/libPayPalMobile.a is 52.72 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
Trace: c683784b6d6c9afc2ef456aabef1b3bf
See http://git.io/iEPt8g for more information.
File Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Versions/A/GoogleMaps is 123.05 MB; this exceeds GitHub's file size limit of 100.00 MB
My current .gitattributes file:
*.jpg filter=lfs diff=lfs merge=lfs -text
*.framework filter=lfs diff=lfs merge=lfs -text
Note that since Git LFS 2.2.0 (June 2017), the preferred way to import large file is with git lfs migrate import --include "*.a".
See the Git LFS 2.2.0 released
If you've tried to push a large file to GitHub without LFS, you might have seen the following error:
$ git push origin master
# ...
remote: error: gh001: large files detected. you may want to try git large file storage - https://git-lfs.github.com.
remote: error: see http://git.io/iept8g for more information.
remote: error: file a.psd is 1.2 gb; this exceeds github's file size limit of 100.00 mb
to github.com:ttaylorr/demo.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#github.com:ttaylorr/demo.git'
You can use the git lfs migrate info command to see which files are causing the push failure:
$ git lfs migrate info
*.psd 1.2 GB 27/27 files(s) 100%
Using the information above, you can determine which files to pluck out of your history and store in LFS:
$ git lfs migrate import --include="*.psd"
migrate: Sorting commits: ..., done
migrate: Rewriting commits: 100% (810/810), done
master f18bb746d44e8ea5065fc779bb1acdf3cdae7ed8 -> 35b0fe0a7bf3ae6952ec9584895a7fb6ebcd498b
migrate: Updating refs: ..., done
$ git push origin
Git LFS: (1 of 1 files) 1.2 GB / 1.2 GB
# ...
To github.com:ttaylorr/demo.git
* [new branch] master -> master
Please follow this it will fix the issue
https://medium.com/#AyunasCode/how-to-push-large-files-to-github-253d05cc6a09#.kfvv2fu5z

Fatal: Unable to checkout working tree

I am cloning the master branch from a GitHub repo onto my system. It throws this error:
Checking connectivity ...done eate file Icon fatal:
unable to checkout working tree warning: Clone succeeded, but checkout
failed.
I've tried to include the suggestions for line ending problems in Windows as the help doc suggests
but still I am facing the same issue.
How can this be solved?
Windows 7
As I know of, you will want to modify any file names containing: \, /, :, *, ?, ", <, >, or |, as Windows does not comply with those symbols for file naming purposes.
A nice and simple "fix" would be to download the files as a zip archive (which is supported by github), then modify the troublesome file names in File Explorer and then, finally, extract the zip archive in your desired directory.
Some documents in the file name under Windows is illegal. Delete these files to, or use OS X to modify the file name and then clone under Windows.
Git can't checkout a repo from github
Check the error messages carefully. Some file names might be long or some other issues will be there concerning a file. Or maybe there is not enough space. But do git clone on command prompt and go through the last couple of error messages
I got this error trying to download some repos with blacklisted windows filenames:
error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c' notice the file is called aux.c which is a banned word in windows because AUX is a namespace for auxiliary port connections. Backwards compatibility to the stone ages basically.
More info: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#win32-device-namespaces
For a full list of reserved keywords see second-last dotpoint: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#naming-conventions
Check the error messages carefully. Some file names might be long or some other issues will be there concerning a file.
PS> git clone https://github.com/jonathanbaraldi/devops-ninja-multicloud-multicluster-pt.git
Cloning into 'devops-ninja-multicloud-multicluster-pt'...
remote: Enumerating objects: 1951, done.
remote: Counting objects: 100% (1951/1951), done.
remote: Compressing objects: 100% (1494/1494), done.
remote: Total 1951 (delta 377), reused 1934 (delta 364), pack-reused 0
Receiving objects: 100% (1951/1951), 6.40 MiB | 19.91 MiB/s, done.
Resolving deltas: 100% (377/377), done.
> error: invalid path 'doc/logos/1*afkK1deEdJkuN3IhnzuzKg.png'
>
> fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
PS> git status
fatal: not a git repository (or any of the parent directories): .git
PS> cd .\devops-ninja-multicloud-multicluster-pt\
PS> git status
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: .gitignore
deleted: LICENSE
deleted: README.md
deleted: app/api-book/Dockerfile
More info:
https://www.unidadvirtual.com/problema-al-clonar-un-proyecto-con-git-en-windows-error-filename-too-long
My case-specific issue was that someone on my team created a bunch of folders with a space at the end of the name.(e.g. 'my_folder ', with the path looking like 'my_folder2/my_folder /document.pdf')
This seems to be possible on Mac, but Windows doesn't allow spaces at the end of folder names. Removing those spaces solved the issue.