i have pushed my website locally on github after creating an empty repository but the repository is still blank - github

I have a folder with codes, i pushed it on github after creating a repository but the process was successful but i can not see any file in the repository, any help guys, this is my cli codes
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$ git remote add origin https://github.com/Kato669/ict-specialist-website.git
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$ git push origin main
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/Kato669/ict-specialist-website.git'
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$ git push origin master
Enumerating objects: 1383, done.
Counting objects: 100% (1383/1383), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1380/1380), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (1383/1383), 35.93 MiB | 323.00 KiB/s, done.
Total 1383 (delta 181), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$

Related

I am not able to push the code changes on github pages?

I have deployed the code once on github using github pages and now i have maked the changes in some of the code and now i am not able to push the code .I deleted the all branches and code on repo and did the process once again but still on live website i am not getting any changes .
PS D:\VJTI_Racing_Website_2.0\frontend> git add .
>> git commit -m "updated"
>> git push origin master
On branch gh-pages
nothing to commit, working tree clean
Enumerating objects: 26890, done.
Counting objects: 100% (26890/26890), done.
Delta compression using up to 8 threads
Compressing objects: 100% (21199/21199), done.
Writing objects: 100% (26890/26890), 779.96 MiB | 1.96 MiB/s, done.
Total 26890 (delta 4725), reused 26890 (delta 4725), pack-reused 0
remote: Resolving deltas: 100% (4725/4725), done.
remote: warning: File node_modules/.cache/default-development/3.pack is 52.95 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: Trace: d119776a9de8bb6b95dccf52e4031387455d238a7a7367d558a094750a2328de
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File node_modules/.cache/default-development/0.pack is 490.10 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.
To https://github.com/vjtiracing/VJTI_Racing_Website_2.0.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/vjtiracing/VJTI_Racing_Website_2.0.git'
the error showing is of large file but I deleted the node modules file and also cleared the cache please someone help me out here.

Azure DevOps Git Repo SSH failed to download lfs files while https works fine

So I'm trying to clone my Azure DevOps Git repo. If I use SSH, I get the following error:
$ git clone <ssh-url> az-lynx
Cloning into 'az-lynx'...
remote: Azure Repos
remote: Found 177467 objects to send. (371 ms)
Receiving objects: 100% (177467/177467), 395.46 MiB | 7.01 MiB/s, done.
Resolving deltas: 100% (130228/130228), done.
Updating files: 100% (13436/13436), done.
Downloading /jquery-1.10.2.min.map (140 KB)
Error downloading object: /jquery-1.10.2.min.map (3b5c544): Smudge error: Error downloading /jquery-1.10.2.min.map (3b5c544e238a129e2b7296ad731f8963ea092843967a4bbc2d748e471ae115b9): batch request: unexpected end of JSON input
Errors logged to C:\projects\az-lynx\.git\lfs\logs\20210926T085414.2333448.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: /jquery-1.10.2.min.map: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Now, if I use HTTPS instead, it works just fine with the file downloaded correctly
got clone <https-url>
Cloning into 'az-lynx'...
remote: Azure Repos
remote: Found 177467 objects to send. (428 ms)
Receiving objects: 100% (177467/177467), 395.46 MiB | 8.64 MiB/s, done.
Resolving deltas: 100% (130228/130228), done.
Updating files: 100% (13436/13436), done.
Filtering content: 100% (4253/4253), 263.01 MiB | 7.52 MiB/s, done.
Aren't both SSH and HTTPS pointing to the same repo? Why SSH is complaining missing files while HTTPS works just fine?

Fatal errors on git push (no upstream branch, pack exceeds maximum allowed size,write error: Broken pipeB/s, )

I have an old repository on Github (the last commit was 2 years ago). Recently I worked with the local copy, and performed several commits, tried to push, it gave me the following error
$git push
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
I searched for a solution here , I tried $ git push --set-upstream origin masterthe following errors occurred:
Enumerating objects: 182, done.
Counting objects: 100% (182/182), done.
Delta compression using up to 8 threads
Compressing objects: 100% (110/110), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (166/166), 2.44 GiB | 599.00 KiB/s, done.
Total 166 (delta 61), reused 147 (delta 47), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
I tried another solution from the same post $ git push -u origin head
it gives me some extra errors
git push -u origin master
Warning: Permanently added the RSA host key for IP address '140.82.112.4' to the list of known hosts.
Enumerating objects: 182, done.
Counting objects: 100% (182/182), done.
Delta compression using up to 8 threads
Compressing objects: 100% (110/110), done.
remote: fatal: pack exceeds maximum allowed size
fatal: sha1 file '<stdout>' write error: Broken pipeB/s
error: remote unpack failed: index-pack abnormal exit
To github.com:drnesr/PrayerTimesStudies.git
! [remote rejected] master -> master (failed)
error: failed to push some refs to 'github.com:AcountName/RepoName.git'
How can I solve this push to GitHub problem?

Clone succeeded, but checkout failed

tried to clone a large project at work. It has worked in the past. But my internet was disconnected and I got this error message :
the question is how can I resume the download without loosing the previously downloaded data
$ git clone git#github.com:Unity-Technologies/FPSSample.git
Cloning into 'FPSSample'...
remote: Enumerating objects: 18652, done.
remote: Total 18652 (delta 0), reused 0 (delta 0), pack-reused 18652
Receiving objects: 100% (18652/18652), 213.75 MiB | 214.00 KiB/s, done.
Resolving deltas: 100% (9780/9780), done.
Updating files: 100% (12731/12731), done.
Downloading Assets/Textures/Environment/Props/Doors/Doors_Scifi_A/Door_800x500_Floormat_A/Door_800x500_Floormat_A_MaskMap.tif (8.4 MB)
Error downloading object: Assets/Textures/Environment/Props/Doors/Doors_Scifi_A/Door_800x500_Floormat_A/Door_800x500_Floormat_A_MaskMap.tif (4d90adf): Smudge error: Error downloading Assets/Textures/Environment/Props/Doors/Doors_Scifi_A/Door_800x500_Floormat_A/Door_800x500_Floormat_A_MaskMap.tif (4d90adf4e9dd91dd216d6619bbbbe9cf9589898c7f6f705ed079a4043b8111b7): batch request: ssh: Could not resolve hostname github.com: Name or service not known: exit status 255
Errors logged to C:\Users\momen\OneDrive\Bureau\Fps Sample\FPSSample\.git\lfs\logs\20191221T120849.6912638.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: Assets/Textures/Environment/Props/Doors/Doors_Scifi_A/Door_800x500_Floormat_A/Door_800x500_Floormat_A_MaskMap.tif: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

xcdatamodel history causing git push errors

I have enabled history for xcdatamodel file.From the xcode it appears to be one file
from terminal its a set of folders
my.xcdatamodeld/
my 2.xcdatamodel
my.xcdatamodel
I am unable to deliver this to my remote git repository due to this error
indmacsunelama$ git push
Counting objects: 19, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (14/14), 34.11 KiB, done.
Total 14 (delta 5), reused 7 (delta 1)
remote: usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
remote: or: git cat-file (--batch|--batch-check) < <list_of_objects>
remote: <type> can be one of: blob, tree, commit, tag
remote: -t show object type
remote: -s show object size
remote: -e exit with zero when there's no error
remote: -p pretty-print object's content
remote: --textconv for blob objects, run textconv on object's content
remote: --batch show info and content of object standard input
remote: --batch-check show info about objects fed from the standard input
remote: error: hook declined to update refs/heads/master
To git://mylinuxbox.us.spec.com/mobile.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git://mylinuxbox.us.spec.com/mobile.git'
Those errors indicate that you have a buggy hook installed in your remote repository. Check the hooks subdirectory in mobile.git on your remote server and look at the hooks that are enabled. It seems that the hook is misusing git cat-file at some point.