Last login: Mon Jun 25 08:50:04 on ttys000
ApplematoMacBook-Pro:~ Apple$ cd ~/.ssh
ApplematoMacBook-Pro:.ssh Apple$ ls
id_rsa id_rsa.pub known_hosts
ApplematoMacBook-Pro:.ssh Apple$ cp id_rsa.pub /tmp/yourname.pub
ApplematoMacBook-Pro:.ssh Apple$ ls -a
. .DS_Store id_rsa.pub
.. id_rsa known_hosts
ApplematoMacBook-Pro:.ssh Apple$ ls /temp/ -a
ls: -a: No such file or directory
ls: /temp/: No such file or directory
ApplematoMacBook-Pro:.ssh Apple$ ls /tmp/ -a
ls: -a: No such file or directory
/tmp/:
BTServer_stderr.log launch-cMb6bA launchd-1162.0SDRwr
BTServer_stdout.log launch-nfmlor launchd-125.D9aHtW
launch-5pjs9U launch-nkOD3V launchd-873.S0BcGO
launch-6ijR0S launch-tlHeK4 launchd-926.Cs73pQ
launch-FZ8rkG launch-y6uVHc yourname.pub
ApplematoMacBook-Pro:.ssh Apple$ git config --global
usage: git config [options]
Config file location
--global use global config file
--system use system config file
--local use repository config file
-f, --file <file> use given config file
Action
--get get value: name [value-regex]
--get-all get all values: key [value-regex]
--get-regexp get values for regexp: name-regex [value-regex]
--replace-all replace all matching variables: name value [value_regex]
--add adds a new variable: name value
--unset removes a variable: name [value-regex]
--unset-all removes all matches: name [value-regex]
--rename-section rename section: old-name new-name
--remove-section remove a section: name
-l, --list list all
-e, --edit opens an editor
--get-color <slot> find the color configured: [default]
--get-colorbool <slot>
find the color setting: [stdout-is-tty]
Type
--bool value is "true" or "false"
--int value is decimal number
--bool-or-int value is --bool or --int
--path value is a path (file or directory name)
Other
-z, --null terminate values with NUL byte
ApplematoMacBook-Pro:.ssh Apple$ git config --global user.apple
ApplematoMacBook-Pro:.ssh Apple$ git config --global user.name lijian
ApplematoMacBook-Pro:.ssh Apple$ git config --global -l
user.name=lijian
ApplematoMacBook-Pro:.ssh Apple$ git config --global user.email "lijian@entel.com.cn"
ApplematoMacBook-Pro:.ssh Apple$ git config -l
user.name=lijian
user.email=lijian@entel.com.cn
ApplematoMacBook-Pro:.ssh Apple$ ssh git@localhost
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 5d:a1:d7:5c:1b:b5:3d:bb:8e:7c:28:fa:82:e6:90:c9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
Last login: Mon Jun 25 13:45:13 2012
ApplematoMacBook-Pro:~ git$ git clone git@localhost:repositories/gitosis-admin.git
Cloning into gitosis-admin...
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 5d:a1:d7:5c:1b:b5:3d:bb:8e:7c:28:fa:82:e6:90:c9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
Password:
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 5 (delta 1), reused 5 (delta 1)
Receiving objects: 100% (5/5), done.
Resolving deltas: 100% (1/1), done.
ApplematoMacBook-Pro:~ git$ cd gitosis
gitosis/ gitosis-admin/
ApplematoMacBook-Pro:~ git$ cd gitosis
ApplematoMacBook-Pro:gitosis git$ cd gitosis-admin/
-bash: cd: gitosis-admin/: No such file or directory
ApplematoMacBook-Pro:gitosis git$ ls
COPYING example.conf
MANIFEST.in gitosis
README.rst gitosis.egg-info
TODO.rst gitweb.conf
build lighttpd-gitweb.conf
debian mirror.conf
dist projects.list
etc-event.d-local-git-daemon setup.py
ApplematoMacBook-Pro:gitosis git$ cd ..
ApplematoMacBook-Pro:~ git$ ls
Desktop Library Pictures gitosis-admin
Documents Movies Public repositories
Downloads Music gitosis
ApplematoMacBook-Pro:~ git$ pwd
/Users/git
ApplematoMacBook-Pro:~ git$ cd ~
ApplematoMacBook-Pro:~ git$ ls
Desktop Library Pictures gitosis-admin
Documents Movies Public repositories
Downloads Music gitosis
ApplematoMacBook-Pro:~ git$ cd gitosis-admin
ApplematoMacBook-Pro:gitosis-admin git$ ls
gitosis.conf keydir
ApplematoMacBook-Pro:gitosis-admin git$