Skip to content

Instantly share code, notes, and snippets.

@zoras
Created February 25, 2011 05:55
Show Gist options
  • Save zoras/843421 to your computer and use it in GitHub Desktop.
Save zoras/843421 to your computer and use it in GitHub Desktop.

ssh <computer_name or ip> echo $PATH /usr/bin:/bin:/usr/sbin:/sbin

This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

Edit the /etc/sshd_config file by activating the PermitUserEnvironment yes option and then creating a ~/.ssh/environment file with the following:-

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin

restart the ssh sudo /sbin/service ssh stop sudo /sbin/service ssh start

git clone powermac:/path/to/project git clone @:/path/to/project

==

Bundle

git bundle create repo.bundle master

ls -lh repo.bundle (email repo.bundle) git ls-remote repo.bundle

git clone repo.bundle -b master repo cd repo git log --oneline git log --oneline master ^origin/master git bundle create commits.bundle master ^origin/master ls -lh commits.bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment