Skip to content

Instantly share code, notes, and snippets.

@bikashp
Forked from zoras/ssh-remote.md
Created March 7, 2011 09:10
Show Gist options
  • Save bikashp/858260 to your computer and use it in GitHub Desktop.
Save bikashp/858260 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