DEV Community

How to remove git from the project and then upload it to the new repo ?

Sardar Mudassar Ali Khan on December 01, 2023

Removing Git from the Project Step 1: Backup your project Before proceeding, make sure you have a backup of your project files in case a...
Collapse
 
cawal profile image
CaWaL

Is this a joke? You will lose all the versioning history doing it. Usually, all you need is to change the URL of the remote and push things to the new repo.

Collapse
 
sardarmudassaralikhan profile image
Sardar Mudassar Ali Khan

Try it by your self man then put your thoughts here other wise i don't consider this type of shitty comments on my posts

Collapse
 
cawal profile image
CaWaL

Sorry, but this post is dangerous for the begginer. Doing as it is said, you will lose all the versioning information in the new repository and this should be noted at the preamble.

Usually, someone wants to move all the repository and all of its history to a new place. This should be done changing the URL of the remote (I think it's made using 'git remote --set-url ...') and pushing the repo to the new URL.

Thread Thread
 
cawal profile image
CaWaL

Here what I'm talking about: stackoverflow.com/a/1484666

Thread Thread
 
cawal profile image
CaWaL

But you are right: I shouldn't called the post a joke. I'm sorry for it.

Thread Thread
 
sardarmudassaralikhan profile image
Sardar Mudassar Ali Khan

Wiseman Thanks for Understanding my point.

Collapse
 
rahul221389 profile image
Rahul charan

clearly explained.