github - How do I connect a COPY (an archive, not a clone) of a git repository to its remote? -
I want to know how to connect a copy of a GIT repo (a collection, not a clone) and sync with it Remote repo
Background: I have a local and remote repository. I can zip my local store using GIT archive and then copy it to a server:
$ Git archive --format = tar HEAD | Jizip & gt; Myarchive.tar.gz Question: After unzipping the archive on the server, how do I re-connect and sync the server copy to the remote repository?
If I do this: $ git init $ git Add Remote Origin git@github.com/myusername: reponame.git bring $ git original GIT status still reports everything is unheard of
What am I doing that my unzipped folder completely syncs with remote repo, and So can I reduce any future remote repo?
Do not do one collection:
/ Strong>: This will give you a file, except you will be able to drag it from once copied to the remote location. "/ p>
This bundle may also be incremental (see also" ").
You do not have to copy the full repo, Only after the previous backup is missing. I have a script which goes to all my reporter repo and takes a full backup once a week, increasing the daily backup (if the new address ):
As mentioned, the GIT archive only saves an amendment, which Any synchronization (not indispensable) in the websio repo reduces.
There is another way, but too much of it (potentially private sensitive files, or hook scripts). git bundle git path.
Comments
Post a Comment