akshitagit / JavaScript

Repository for JavaScript codes and algos.Star the repo too.
https://github.com/akshitagupta15june
MIT License
82 stars 111 forks source link

Fixes/checkoutproblem #153

Closed Huluvu424242 closed 1 year ago

Huluvu424242 commented 1 year ago

(fixed issue #154 ) Hello, there was an checkout problem at window if you try to checkout your project from scratch via git clone.

Cause: the file Array/LongStrWithoutRepeat.js has 3 trailing spaces!

$ git clone git@github.com:Huluvu424242/JavaScript.git
Cloning into 'JavaScript'...
Enter passphrase for key '/c/Users/huluv/.ssh/id_rsa':
remote: Enumerating objects: 747, done.
remote: Counting objects: 100% (208/208), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 747 (delta 145), reused 118 (delta 110), pack-reused 539
Receiving objects: 100% (747/747), 181.20 KiB | 871.00 KiB/s, done.
Resolving deltas: 100% (284/284), done.
error: invalid path 'Array/LongStrWithoutRepeat.js '
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 :/'

This PR fixed this problem. I have removed the trailing spaces via 2 commits.

Huluvu424242 commented 1 year ago

Have you tried to clone your project at window os at now? there is no content checked out because an file in the Array folder has trailing spaces (error: invalid path).

In this PR i have removed the trailing spaces from the file name (is not simple) because git! So there is no changes - that right but the file name has changed.

It is only an info - you can fix it or not. This was an try to help you.

;-) "Eine gute Tat vollendet man, indem man die Undankbarkeit verzeiht." - Marie-Thérèse Geoffrin