Created
July 11, 2014 09:09
-
-
Save gioele/d4e0905a3570f097fb0b to your computer and use it in GitHub Desktop.
git-annex sync does not push
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
set -e ; set -u | |
export LC_ALL=C | |
d=$(pwd) | |
# cleanup | |
chmod a+rwx -R REPO pc1 || true | |
rm -Rf REPO pc1 | |
# create central git repo | |
mkdir -p REPO/Docs.git | |
cd REPO/Docs.git | |
git init --bare | |
cd $d | |
# populate repo in PC1 | |
mkdir -p pc1/Docs | |
cd pc1/Docs | |
echo AAA > fileA | |
echo BBB > fileB | |
git init | |
git remote add origin $d/REPO/Docs.git | |
git fetch --all | |
git annex init "pc1" | |
git annex info | |
git annex direct | |
git annex sync | |
git annex add . | |
git annex sync | |
find $d/REPO/Docs.git/refs | |
# there should be many branches inside refs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment