summaryrefslogtreecommitdiff
path: root/doc/todo/untracked_remotes/comment_4_75ae13c2135a2951b2af548139cb25cd._comment
blob: fd9397531228aa672fdadf40b91857141561a200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[[!comment format=mdwn
 username="https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U"
 nickname="Richard"
 subject="comment 4"
 date="2014-01-02T01:15:40Z"
 content="""
Another use case of read-only repos:

Instead of merging pull requests or anything, with git-annex, it makes most sense to simply set up the other party as a remote and `git annex sync`.
This will attempt to push to the other remote.

In this specific case:

    % git annex sync
    commit  
    ok
    pull origin 
    ok
    pull greggrossmeier 
    ok
    push origin 
    Counting objects: 113, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (84/84), done.
    Writing objects: 100% (98/98), 25.16 KiB | 0 bytes/s, done.
    Total 98 (delta 17), reused 1 (delta 0)
    To git@github.com:RichiH/conference_proceedings.git
     * [new branch]      git-annex -> synced/git-annex
     * [new branch]      master -> synced/master
    ok
    push greggrossmeier 
    Username for 'https://github.com': 
    Password for 'https://github.com': 
    remote: Anonymous access to greggrossmeier/conference_proceedings.git denied.
    fatal: Authentication failed for 'https://github.com/greggrossmeier/conference_proceedings.git/'
    Username for 'https://github.com': 
    Password for 'https://github.com': 
    
      Pushing to greggrossmeier failed.
    
      (non-fast-forward problems can be solved by setting receive.denyNonFastforwards to false in the remote's git config)
    failed
    git-annex: sync: 1 failed
    %

"""]]