This commit is contained in:
parent
ac4c8df2ca
commit
5dd2485e4c
1 changed files with 21 additions and 0 deletions
21
doc/forum/sync_remote_repo_on_local_sync_upstream.mdwn
Normal file
21
doc/forum/sync_remote_repo_on_local_sync_upstream.mdwn
Normal file
|
@ -0,0 +1,21 @@
|
|||
I am looking for a short cut for my workflow where I sync a (somewhat) central repo and a few client repos.
|
||||
|
||||
So, I sync upstream
|
||||
|
||||
laptop > git annex sync --content
|
||||
|
||||
and ssh to the central repo and run another sync
|
||||
|
||||
server > git annex sync
|
||||
|
||||
to bring it up to date so that I can sync/pull it again from my desktop.
|
||||
|
||||
Is there an easy way to script/do both steps in one for different protocols? E.g., update a ssh repo and a USB-drive repo when syncing on the local one?
|
||||
|
||||
At the moment, I would try to check for all known remotes
|
||||
|
||||
> git remote -v
|
||||
|
||||
and depending on the protocol ssh/cd into each for triggering a sync.
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue