@ianwalter: upgrade Git!
Or you can use my github-keygen to automate all this and use very secure SSH settings.
The interface could be much improved:
-
VERSION_CHECK[0]
should just be the return code of the function. -
VERSION_CHECK[1]
should becomeVERSION_ERROR
and be set only if an error occured.
@steve-jansen:
You can also use "url.instedOf" to create shortcuts:
git config --global url."https://github.com/".insteadOf github:
I can then do;
git clone github:dolmen/github-keygen.git
This is a crazy usage of Travis-CI. Not recommended.
A few advices:
- remove the « ; » at the end of the lines: they are redundant with NL
- add quotes around « $1 »: cd "$1"
- remove « " " » after echo: just « echo » is enough to print an empty line
@papaloizouc You'll have first to create something that will install Python on the machine. So your suggestion is totally counter-productive.
PowerShell is the scripting language for Windows platforms.
To switch between multiple Github accounts I have already built an ad-hoc solution : github-keygen. I'm using host aliases for the remotes to select the SSH key to use just once when I clone a repo.
https://github.com/dolmen/github-keygen
See also github-keygen, a tool dedicated to build you the best settings for your Github connections: https://github.com/dolmen/github-keygen
Use the -f
argument of ssh-keygen
to avoid using the default path ~/.ssh/id_rsa
.
Or store this information forever for a given host or set of hosts in your ~/.ssh/config.
See how github-keygen does this for your SSH links to Github : https://github.com/dolmen/github-keygen
Instead of launching n instances of Vim it could be more productive to edit multiple files in a single one:
ack -l 'pattern' | xargs vim
Then in Vim, use :n
to switch to the next file.
@hostonnet: That's not in their interest: web developers would stop using the CDN and they would not be able to track users anymore.
To easily setup your config for the Github SSH hosts, try my tool, github-keygen: https://github.com/dolmen/github-keygen
For advanced SSH aliases to connect to Github, check github-keygen : https://github.com/dolmen/github-keygen/
If you use SSH to connect to Github, my tool github-keygen might be useful for the initial setup. https://github.com/dolmen/github-keygen
I'm using this SSH feature in my github-keygen tool. https://github.com/dolmen/github-keygen/
git config --local user.email
have to be done just once per clone, as the setting is stored in.git/config
. But instead you are doing it every time you enter the repo.It would be better to do that in a git
post-checkout
hook.