WIKI.9FRONT.ORG UNOFFICIAL MIRROR OF WIKI.A-B.XYZ

Resources

User configuration

   % mkdir $home/lib/git
   % cat > $home/lib/git/config
   [user]
          name=Your Name
          email=me@example.org
   ^D

Examples

Create, commit and push a repo:

   % cd repo
   % git/init
   # add a remote in .git/config...
   % git/add .
   % git/commit -m 'commitmsg' foo.c
   heads/front: 817a3f121083091291c45f1ddfcd1b042343efab
   % git/push

Clone and push changes to a repo:

   % git/clone git://git.example.org/repo
   % cd repo
   # make changes...
   % git/commit foo.c
   % git/push

Make a patch:

   # make changes...
   % git/commit -m 'commitmsg' foo.c
   heads/front: 817a3f121083091291c45f1ddfcd1b042343efab
   % git/export > patch.diff

Apply a patch:

   % git/import < patch.diff
   applying commitmsg

See which files have changed:

   % git/diff -s
   M foo.c
   M bar.c

Shithub usage

First ask Ori (ori AT eigenstate DOT org) for a user.

Create and push a repository:

   % rcpu -u $user -h shithub.us -c \
          newrepo -d 'description' -c 'me@example.org' reponame
   % git/push -u hjgit://shithub.us/$user/reponame

Repositories live under /usr/git/$user. Each repo contains editable files in /usr/git/$user/repo/.git: