Merge pull request #79 from github/doc-update

Doc update
This commit is contained in:
Scott Barron 2014-06-24 11:04:47 -04:00
commit 7b2209816a
2 changed files with 14 additions and 4 deletions

@ -1,6 +1,7 @@
package commands
import (
"fmt"
"github.com/github/git-media/gitmedia"
"github.com/github/git-media/gitmediaclient"
"strings"
@ -38,10 +39,12 @@ func (c *PushCommand) Run() {
if err != nil {
Panic(err, "error uploading file %s/%s", sha, filename)
}
fmt.Printf("\n")
if err := q.Del(id); err != nil {
Panic(err, "error removing %s from queue", sha)
}
return nil
})
}

@ -120,9 +120,16 @@ normal. After committing, `git show` will show the file's meta data:
+84ff327f80500d3266bd830891ede1e4fd18b9169936a066573f9b230597a696
\ No newline at end of file
Now, you can run the `git media sync` command. This uploads any queued files to
the Git Media endpoint.
Now, when you run `git push`, all queued files to will be synced to the
Git Media endpoint.
$ git media sync
$ git push origin master
Sending my.zip
12.00 MB / 12.00 MB [========================================================] 100.00 %
12.58 MB / 12.58 MB 100.00 %
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 548 bytes | 0 bytes/s, done.
Total 5 (delta 1), reused 0 (delta 0)
To https://github.com/github/gitmediatest
67fcf6a..47b2002 master -> master