How to restore a GIT repository to a server from a client -
i have synology ds212j nas running gitolite , git on it. ds212j corrupted virus , through process of cleaning it, nas lost , formatted. have up-to-date git repo on laptop , want start on over ds212j , push including of checkins , history repo on ds212j. there way accomplish task?
as long have local copy can set empty git repository on server (in example gitolite instance on nas), update remote-url in local copy , push remote.
so in single steps:
- set gitolite
- set project in gitolite instance
- (if required) change remote url (see
git remote set-url
) in local copy - do
git push
newly created remote (maybe multiple branches)
after have exact copy of local on remote (your nas).
Comments
Post a Comment