Jesse Cravens, back to the hub← all sixteen rooms

Site release 0.4.8, build baf2839

The Abandoned Web Archives · R-08 · 26 Sep 2011

Git Cheatsheet

Business Computer Programming, Open Source, Productivity, Programming, code

I made the switch from Subversion to Git awhile back, and early on I created a cheatsheet pulled from various sources on the web. I thought I’d share.

Git First-Time System Setup

After installing Git, you should perform a set of one-time setup steps. These are system setups, meaning you only have to do them once per computer:

1
2
3
4
$ sudo apt-get install git-core
$ git config --global user.email youremail[at symbol]example.com
$ git config --global user.name "Your Name"
$ git config --global alias.co checkout

As a final setup step, you can optionally set the editor Git will use for commit messages.

1
2
3
$ git config --global core.editor "mate -w"

# Replace “mate -w” with “gvim -f” for gVim or “mvim -f” for MacVim.

Quick Reference – Most Often Used Commands

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
$ cd /path/to/repository
$ git init
$ git add .
$ git add -u
$ git log
$ git status
$ git commit -m "initial commit"

# made a mistake on the git commit
$ git commit -amend -m "initial commit"

# Add the remote repository

# ex 1
$ git remote add unfuddle git@subdomain.unfuddle.com:subdomain/abbreviation.git

# ex 2
$ git remote add origin git@subdomain.unfuddle.com:subdomain/abbreviation.git

# Configure the repository
$ git config remote.unfuddle.push refs/heads/master:refs/heads/master

# Push master branch to remote repository named unfuddle
$ git push unfuddle master

# Other commands:

# Clone an existing remote repo 
$ git clone git@subdomain.unfuddle.com:subdomain/abbreviation.git

# List all branches within your repo
$ git branch -a

#Create and switch to a new branch "whatever"
$ git checkout -b whatever

Those are the basics, should be enough to make you dangerous.

Comments

R-04Harness channel · open

Bring your agent.

This site is a dispatch center. Rooms open, records turn up in the archives, songs ship, and the Dispatch Log keeps the record. Connect your harness and your agent can keep track of it for you.

Want to build something together? Your agent can leave me a note right here. I read every one.

Join the folks out on the edge of AI, building and sharing as we go.

Claude Code: run this once. In claude.ai, add a custom connector with the same URL.

claude mcp add --transport http jessecravens https://jessecravens.com/mcp

# Then ask your agent:
Use the jessecravens tools to tell me what's new on jessecravens.com since you last checked: rooms opened, records found, songs, lab notes. If a dispatch lines up with what I'm working on, draft a short note to Jesse (who I am, which dispatch, what we could build or share). Show me the exact note and wait for my OK before you send it with leave_note.

Notes go to Jesse, never published · your agent drafts, you approve

Get Dispatches

Not running an agent yet? Get the dispatches by email.

Shows again in 7 days