Go to file
jolheiser ea7a455d75
continuous-integration/drone/push Build is passing Details
Move to lib/cli and add drone (#5)
Reviewed-on: #5
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-committed-by: jolheiser <john.olheiser@gmail.com>
2021-06-22 05:04:10 +00:00
cmd/git-get Move to lib/cli and add drone (#5) 2021-06-22 05:04:10 +00:00
.drone.yml Move to lib/cli and add drone (#5) 2021-06-22 05:04:10 +00:00
.gitignore Move to lib/cli and add drone (#5) 2021-06-22 05:04:10 +00:00
Makefile Move to lib/cli and add drone (#5) 2021-06-22 05:04:10 +00:00
README.md Move to lib/cli and add drone (#5) 2021-06-22 05:04:10 +00:00
go.mod Move to lib/cli and add drone (#5) 2021-06-22 05:04:10 +00:00
go.sum Move to lib/cli and add drone (#5) 2021-06-22 05:04:10 +00:00
import.go Move to lib/cli and add drone (#5) 2021-06-22 05:04:10 +00:00
import_test.go Move to lib/cli and add drone (#5) 2021-06-22 05:04:10 +00:00

README.md

git-import

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 similarly 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 https://go.jolheiser.com/git-import with Vanity

<meta name="git-import" content="git-import https://git.jojodev.com/jolheiser/git-import.git git@git.jojodev.com:jolheiser/git-import.git" />

Installation (Git extension)

To install the Git extension:

go install go.jolheiser.com/git-import/cmd/git-get

SSH

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

Examples

Clone this repository
git get go.jolheiser.com/git-import

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

Clone this repository, but clone into "import-git"
git get -out import-git go.jolheiser.com/git-import

Output the repository URL of this repo (without cloning)
git get -display go.jolheiser.com/git-import

Output the repository SSH URL of this repo (without cloning)
git get -display -ssh go.jolheiser.com/git-import