Skip to content

chassing/git-url

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

git-url

Prints the URL of a file in a git repository from command line, so it is easier to share links to files in git repositores.

Usage

$ git url <path_to_file> [remote]

Example

$ git clone git@github.com:maorfr/git-url.git && cd git-url
Cloning into 'git-url'...

$ git url README.md
https://github.com/maorfr/git-url/blob/master/README.md

Install

  1. Clone this repository.
  2. Copy git-url to your $PATH.
  3. Add git alias - git config --global alias.url '!git-url'.

About

Print URL to a file in git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%