Skip to content

Instantly share code, notes, and snippets.

@achilleas-k
Created September 30, 2016 16:30
Show Gist options
  • Save achilleas-k/5ef76afdfdbc26d36d708f54fdbbfe26 to your computer and use it in GitHub Desktop.
Save achilleas-k/5ef76afdfdbc26d36d708f54fdbbfe26 to your computer and use it in GitHub Desktop.

▶ git remote -v

origin  git@gin.g-node.org:achilleas/testannex (fetch)
origin  git@gin.g-node.org:achilleas/testannex (push)

▶ git remote rm origin

▶ git remote add origin git@gin.g-node.org:/achilleas/testannex

▶ git remote -v

origin  git@gin.g-node.org:/achilleas/testannex (fetch)
origin  git@gin.g-node.org:/achilleas/testannex (push)

▶ git pull

uid: achilleas
cmd: git-upload-pack [/achilleas/testannex]
From gin.g-node.org:/achilleas/testannex
 * [new branch]      git-annex        -> origin/git-annex
 * [new branch]      master           -> origin/master
 * [new branch]      synced/git-annex -> origin/synced/git-annex
 * [new branch]      synced/master    -> origin/synced/master
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

▶ git pull origin master

uid: achilleas
cmd: git-upload-pack [/achilleas/testannex]
From gin.g-node.org:/achilleas/testannex
 * branch            master     -> FETCH_HEAD
Already up-to-date.

▶ git push origin master

uid: achilleas
cmd: git-receive-pack [/achilleas/testannex]
Everything up-to-date

▶ git annex info

uid: achilleas
cmd: git-annex-shell [configlist /achilleas/testannex]
repository mode: indirect
trusted repositories: 0
semitrusted repositories: 4
        00000000-0000-0000-0000-000000000001 -- web
        00000000-0000-0000-0000-000000000002 -- bittorrent
        5afb6072-1985-4888-9c50-d827fbda3d05 -- origin
        f112ed7d-b458-4658-8a7e-356f1eb06ac6 -- achilleas@Tessa:~/tmp/gin/testannex [here]
untrusted repositories: 0
transfers in progress: none
available local disk space: 4.08 gigabytes (+1 megabyte reserved)
local annex keys: 1
local annex size: 4.19 megabytes
annexed files in working tree: 1
size of annexed files in working tree: 4.19 megabytes
bloom filter size: 32 mebibytes (0% full)
backend usage:
        SHA256E: 1

▶ git annex sync --content

commit
On branch master
nothing to commit, working tree clean
ok
pull origin
uid: achilleas
cmd: git-upload-pack [/achilleas/testannex]
ok
copy test.rnd (checking origin...) uid: achilleas
cmd: git-annex-shell [inannex /achilleas/testannex SHA256E-s4194304--78fd4900972cfce1d2988f9c0f6dd0b66606c39768a8bd43c1dbe451779a9ef7.rnd --uuid 5afb6072-1985-4888-9c50-d827fbda3d05]
(to origin...)
uid: achilleas
cmd: git-annex-shell [recvkey /achilleas/testannex SHA256E-s4194304--78fd4900972cfce1d2988f9c0f6dd0b66606c39768a8bd43c1dbe451779a9ef7.rnd --uuid 5afb6072-1985-4888-9c50-d827fbda3d05 -- remoteuuid=f112ed7d-b458-4658-8a7e-356f1eb06ac6 unlocked= direct= associatedfile=test.rnd -- dummy rsync --server -pe.LsfxC --log-format=X --inplace . .]
SHA256E-s4194304--78fd4900972cfce1d2988f9c0f6dd0b66606c39768a8bd43c1dbe451779a9ef7.rnd
      4,194,304 100%  782.59kB/s    0:00:05 (xfr#1, to-chk=0/1)
ok
pull origin
uid: achilleas
cmd: git-upload-pack [/achilleas/testannex]
ok
(recording state in git...)
push origin
uid: achilleas
cmd: git-receive-pack [/achilleas/testannex]
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 460 bytes | 0 bytes/s, done.
Total 5 (delta 1), reused 0 (delta 0)
To gin.g-node.org:/achilleas/testannex
   c468c9a..a8aa6e1  git-annex -> synced/git-annex
ok

▶ ssh koutsou@gin.g-node.org du -hd0 /data/repos/git/achilleas/testannex.git

4.5M    /data/repos/git/achilleas/testannex.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment