You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
John Olheiser 3c1a19d31c
Update query parameter and make HTTPS by default (#4)
2 years ago
.gitignore Initial commit 3 years ago
Makefile QoL (#1) 2 years ago Clarify git alias 3 years ago
go.mod QoL (#1) 2 years ago
go.sum QoL (#1) 2 years ago
main.go Update query parameter and make HTTPS by default (#4) 2 years ago
main_test.go QoL (#1) 2 years ago
parse.go QoL (#1) 2 years ago


Similar to go-import, a way to create vanity URLs for git repository paths.

Information on go-import can be found on the golang website

git-import strives to work in a similar manner
By providing a meta tag with appropriate information, git-import will clone the specified repository

The following is the meta tag for this repository, hosted on with Vanity

<meta name="git-import" content="git-import" />


git-import can set up SSH if applicable, however it must be ran with GIT_SSH_COMMAND set in order to configure the repository properly.


Clone this repository

Clone this repository with SSH
GIT_SSH_COMMAND="/usr/bin/ssh -i /home/user/.ssh/id_rsa" git-import -s

Clone this repository, but clone into "import-git"
git-import import-git

Output the repository URL of this repo (without cloning)
git-import -d

Output the repository SSH URL of this repo (without cloning)
git-import -d -s

Bonus Points

Create a git alias for git-import

git config --global alias.get '!/path/to/git-import'

and use like git get