devdoe
devdoe

Reputation: 4325

How to convert a downloaded repo into a git repo?

Due to some server issues resulting into the error: "aborting due to possible repository corruption on the remote side.", I am not able to clone the repo. As per online research, I found that my server does not have enough RAM to process heavy memory usage. The repo size is 400mb.

Although, I have downloaded the code by clicking the latest commit > Browse code > Download as zip.

Is there a way to init this downloaded folder as git repo? So, that I can push the code?

Upvotes: 2

Views: 1477

Answers (1)

utkusonmez
utkusonmez

Reputation: 1506

You can use these commands

cd folder
git init
git remote add origin https://github.com/user/repo.git

Upvotes: 4

Related Questions