From ad233fd5e162339df77ab44243d2653baab7ebfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Sun, 11 Nov 2012 21:23:08 -0300 Subject: Configure local user also --- Makefile | 7 ++++++- ssh_config | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 ssh_config diff --git a/Makefile b/Makefile index f3b7afe..5031c03 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,11 @@ check: exit 1 ;\ fi +# Add the hackers repo to the local clone +install-local: + git remote add git git:hackers.git + cat ssh_config >>$(HOME)/.ssh/config + # Create the hackers.git bare repo and clone as .ssh # Then create needed symlinks and add hooks to hackers.git install: check @@ -41,4 +46,4 @@ install: check chmod 600 .ssh/authorized_keys && \ ln -s $(PREFIX)/.ssh/git-hooks/* hackers.git/hooks/ && \ ln -s $(PREFIX)/.ssh/git-shell-commands && \ - chown -R $(USER):$(USER) $(PREFIX) + chown -R $(USER):$(USER) $(PREFIX) diff --git a/ssh_config b/ssh_config new file mode 100644 index 0000000..2a57c97 --- /dev/null +++ b/ssh_config @@ -0,0 +1,6 @@ + +# ssh shortcut for git@localhost +Host git + HostName localhost + User git +# Port 22 # change to your ssh port -- cgit v1.2.3