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:

  1. set gitolite
  2. set project in gitolite instance
  3. (if required) change remote url (see git remote set-url) in local copy
  4. do git push newly created remote (maybe multiple branches)

after have exact copy of local on remote (your nas).


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -