Skip to content

Commit

Permalink
New: add git-url (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint authored and stevemao committed Mar 5, 2018
1 parent c2647fc commit 0c1f3cb
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
- [Commitizen](#commitizen)
- [git-fresh](#git-fresh)
- [git-fs](#git-fs)
- [Git Url](#git-url)


## [git-extras](https://github.com/tj/git-extras)
Expand Down Expand Up @@ -1521,6 +1522,66 @@ $ git fs
Mounting readnly filesystem on ./git/fs
```

## [git-url](https://github.com/zdharma/git-url)

[Screenshot](https://raw.githubusercontent.com/zdharma/git-url/images/git-url.png)

### git url

```
$ cd ~/github/git-url.git
$ git url
Encoding... INPUT is next paragraph:
Protocol: https
Site: github.com
Repo: zdharma/git-url
Revision: master
gitu://ҝjȩMżEäḝЃȣϟṈӛŀї
$ git url -r v1.0
Encoding... INPUT is next paragraph:
Protocol: https
Site: github.com
Repo: zdharma/git-url
Revision: v1.0
gitu://ŪĪАϔEäḝЃȣϟṈӛŀї
$ git url -q -p lib/common.sh # -q - quiet, -p - path
gitu://eḶȸṋ0oǗȟЗÛjȩMżEäḝЃȣϟṈӛŀї
$ git url //eḶȸṋ0oǗȟЗÛjȩMżEäḝЃȣϟṈӛŀї
Decoding... OUTPUT is:
Protocol: https
Site: github.com
Repo: zdharma/git-url
Revision: master
File: lib/common.sh
https://github.com/zdharma/git-url
```

### git guclone

```
$ git guclone ŪĪАϔEäḝЃȣϟṈӛŀї
Cloning URL https://github.com/zdharma/git-url for revision v1.0
Cloning into 'git-url'...
remote: Counting objects: 144, done.
remote: Compressing objects: 100% (111/111), done.
remote: Total 144 (delta 71), reused 102 (delta 32), pack-reused 0
Receiving objects: 100% (144/144), 116.43 KiB | 125.00 KiB/s, done.
Resolving deltas: 100% (71/71), done.
Checking out revision/reference v1.0... OK
HEAD is at: 5d10a204, created directory git-url
```


## License

Expand Down

0 comments on commit 0c1f3cb

Please sign in to comment.