Coder Social home page Coder Social logo

test-tushar's Introduction

File uploading & deployment

Steps to push files on git

Dekh bhai:

$ git init
$ git branch -M  main
$ git add .
$ git commit -m  "comment to commit"
$ git remote add origin https://github.com/gitrepourl.git
$ git push -u origin main

If any error like this :

Enumerating objects: 30, done.
Counting objects: 100% (30/30), done.
Delta compression using up to 2 threads
Compressing objects: 100% (30/30), done.
error: RPC failed; HTTP 400 curl 92 HTTP/2 stream 7 was not closed cleanly: CANCEL (err 8)
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (30/30), 1.04 MiB | 31.00 KiB/s, done.
Total 30 (delta 1), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date 

Then try these :

  1. Retry the Push: Sometimes, this issue can be transient, especially if it's caused by a temporary network glitch. So, try running the git push command again to see if it works.

  2. Check Network Connection: Ensure that your internet connection is stable and there are no issues with connectivity. You can try pinging the Git server to see if there are any packet losses or high latencies.

  3. Increase HTTP Buffer Size: You can try increasing the HTTP buffer size in Git to see if it helps. Run the following command to set the buffer size to 1GB:

git config --global http.postBuffer 1048576000

Then try pushing again.

  1. Use SSH Protocol: Instead of using HTTPS, you can try using the SSH protocol for pushing to the remote repository. Make sure you have set up SSH keys and added them to your Git provider (like GitHub, GitLab, etc.).

  2. Check Remote Repository Status: Ensure that the remote repository (in this case, origin) is accessible and there are no issues on the server side.

  3. Check Server Logs: If you have access to the server logs (assuming it's a self-hosted Git server), check the server logs for any errors or warnings that might provide more insights into the issue.

  4. Contact Git Service Provider: If none of the above solutions work, you might want to contact your Git service provider's support team. They might be able to provide further assistance or insights into what might be causing the issue.

console.log("Thank You");

test-tushar's People

Contributors

mrkuldeep01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.