diff options
Diffstat (limited to 'USE.md')
-rw-r--r-- | USE.md | 32 |
1 files changed, 23 insertions, 9 deletions
@@ -14,11 +14,15 @@ while some is done using git-annex-specific commands. To check status of metadata, use git: - git status +```shell +git status +``` To check status of file content storage, use git-annex: - git annex info +```shell +git annex info +``` ## Save @@ -28,9 +32,11 @@ for git-annex archival, first mark which files are involved and then archive their (changes to) content: - git annex add foo bar - git annex add baz - git commit -m "Update foo bar, and add baz." +```shell +git annex add foo bar +git annex add baz +git commit -m "Update foo bar, and add baz." +``` (final `git commit` is implied by [`git annex sync` or `git annex move`](#clone)) @@ -42,12 +48,16 @@ you obviously want to sometime work with the content locally. To fetch content of current folder and all subfolders: - git annex get . +```shell +git annex get . +``` To afterwards relieve local storage of git-annex tracked content in current folder and all subfolders: - git annex move . +```shell +git annex move . +``` To fetch or relieve a single file or another directory, replace the dot with the path to the file or directory. @@ -61,13 +71,17 @@ Many audio formats can be split with the package shntool and appropriate helper tools, e.g. like this for a FLAC file with CUE file for splicing hints: - shnsplit -o flac -f CUE_FILE.cue FLAC_FILE.flac +```shell +shnsplit -o flac -f CUE_FILE.cue FLAC_FILE.flac +``` For many other formats, including video content, splitting can be done using the [copy] parameter to FFMpeg, e.g. like this: - ffmpeg -i INFILE -ss 15 -t 60 -acodec copy -vcodec copy OUTFILE +```shell +ffmpeg -i INFILE -ss 15 -t 60 -acodec copy -vcodec copy OUTFILE +``` [copy]: https://ffmpeg.org/ffmpeg.html#Stream-copy "FFMpeg copy parameter" |