简体   繁体   中英

Create a new Repo with the local cloned copy alone

Unfortunately my GIT Repo server is down indefinitely..

I just have a local clone copy which is assumed to be the latest, having all commits and branches.

Now. How do i create a new Bare repo out of this Clone copy.

I dont want to turn this copy in to a git repo. Instead , is there a way to make a new repo out of just with the .git folder. A bare repo to be specific

A bare repo really is just one that has no working directory. I am pretty sure if you simply delete all the working files you will have what you need.

It is the git database that stores all the details required to 'reconstruct' any commit state.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM