Generating public/private dsa key pair. Enter file in which to save the key (/Users/alexander/.ssh/id_dsa): x Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /Users/alexander/.ssh/id_dsa. Your public key has been saved in /Users/alexander/.ssh/id_dsa.pub. The key fingerprint is: d8:fd:cb:8f:9f:2e:5b:06:0d:c2:40:31:81:1a:9c:0a alexkoster@shell.sf.net The key's randomart image is: +--[ DSA 1024]----+ | . . o*o | |E + . + | | . . o o . | | . . o . . o | | . S . . . | | . . | | . o | | ..= . | | =*= | +-----------------+ rmbp:~ alexander$ less /Users/alexander/.ssh/id_dsa rmbp:~ alexander$ pbcopy < ~/.ssh/id_rsa.pub rmbp:~ alexander$ git --version git version 2.3.2 (Apple Git-55) rmbp:~ alexander$ cd devel/ rmbp:devel alexander$ ls github rmbp:devel alexander$ mkdir gitlab rmbp:devel alexander$ mkdir sf rmbp:devel alexander$ cd sf rmbp:sf alexander$ ls rmbp:sf alexander$ cd .. rmbp:devel alexander$ cd gitlab rmbp:gitlab alexander$ ls rmbp:gitlab alexander$ mkdir mavenmaze rmbp:gitlab alexander$ cd mavenmaze/ rmbp:mavenmaze alexander$ touch README.md # This is Git's per-user configuration file. rmbp:mavenmaze alexander$ git add README.md first commit fatal: Not a git repository (or any of the parent directories): .git rmbp:mavenmaze alexander$ git init Initialized empty Git repository in /Users/alexander/devel/gitlab/mavenmaze/.git / rmbp:mavenmaze alexander$ git add README.md rmbp:mavenmaze alexander$ git commit -m "first commit" [master (root-commit) 22f5f96] first commit Committer: Alexander <alexander@rmbp.attlocal.net> Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly. Run the following command and follow the instructions in your editor to edit your configuration file: git config --global --edit After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md rmbp:mavenmaze alexander$ git config --global --edit rmbp:mavenmaze alexander$ git commit --amend --reset-author [master 8dfd3d7] first commit Committer: Alexander <alexander@rmbp.attlocal.net> Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly: git config --global user.name "Your Name" git config --global user.email you@example.com After doing this, you may fix the identity used for this commit with: git commit --amend --reset-author 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md rmbp:mavenmaze alexander$ git config --global user.name "Alex Koster" rmbp:mavenmaze alexander$ git config --gloval user.email "dev@alexkoster.com" error: unknown option `gloval' usage: git config [options] Config file location --global --system --local -f, --file <file> --blob <blob-id> Action --get --get-all --get-regexp --get-urlmatch first commit --replace-all x] --add --unset --unset-all --rename-section --remove-section -l, --list -e, --edit --get-color --get-colorbool
use global config file
use system config file use repository config file use given config file read config from given blob object get get get get
value: name [value-regex]
all values: key [value-regex] values for regexp: name-regex [value-regex] value specific for the URL: section[.var] URL
replace all matching variables: name value [value_rege
add a new variable: name value remove a variable: name [value-regex] remove all matches: name [value-regex] rename section: old-name new-name remove a section: name list all open an editor find the color configured: slot [default] find the color setting: slot [stdout-is-tty]
Type --bool --int --bool-or-int --path Other -z, --null --includes
value value value value
is is is is
"true" or "false" decimal number --bool or --int a path (file or directory name)