Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nishimoto_2011_val_1min.mat git-annex? #1

Open
yarikoptic opened this issue Aug 24, 2017 · 1 comment
Open

nishimoto_2011_val_1min.mat git-annex? #1

yarikoptic opened this issue Aug 24, 2017 · 1 comment

Comments

@yarikoptic
Copy link

If you would like I could add that file under git annex control so anyone cloning this repo could just git annex get it if they have git annex installed

No pressure whatever

@yarikoptic
Copy link
Author

FWIW this is how it could be done:

(git)hopa:~/proj/misc/motion_energy_matlab[master]
$> git annex init  # complaint below is "safe" -- just that annex notes that it cannot use github for storing the data
init  curl: (22) The requested URL returned error: 404 Not Found

  Remote origin not usable by git-annex; setting annex-ignore
ok
(recording state in git...)
$> cd demo

$> git annex addurl --file=nishimoto_2011_val_1min.mat https://dl.dropbox.com/s/svo55behbw3m1zy/nishimoto_2011_val_1min.mat?dl=0   
addurl nishimoto_2011_val_1min.mat (downloading https://dl.dropbox.com/s/svo55behbw3m1zy/nishimoto_2011_val_1min.mat?dl=0 ...) 
/home/yoh/proj/misc/motion_energy_mat 100%[=========================================================================>] 133.53M  40.4MB/s    in 3.4s    
2017-08-24 13:27:09 URL:https://dl.dropboxusercontent.com/s/svo55behbw3m1zy/nishimoto_2011_val_1min.mat?dl=0 [140015723/140015723] -> "/home/yoh/proj/misc/motion_energy_matlab/.git/annex/tmp/URL-s140015723--https&c%%dl.dropbox.com%s%svo55b-0b3514843e8994bfb9743a76eba47bca" [1]
ok
(recording state in git...)

$> git commit -m "Added git-annexed nishimoto_2011_val_1min.mat file pointing to dropbox" -a
[master 1a22cbb] Added git-annexed nishimoto_2011_val_1min.mat file pointing to dropbox
 1 file changed, 1 insertion(+)
 create mode 120000 demo/nishimoto_2011_val_1min.mat

$> git push --all --dry-run origin                                                          
To github.com:gallantlab/motion_energy_matlab
   1d7b1a9..1a22cbb  master -> master
 * [new branch]      git-annex -> git-annex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant