้•œๅƒ็ซ™็‚น ยท ๆœฌ้กต็”ฑ็ฌฌไธ‰ๆ–น GitHub ๅช่ฏป้•œๅƒๆไพ›๏ผŒ้ž GitHub ๅฎ˜ๆ–น็ซ™็‚น๏ผŒไธๆŽฅๅ—ไปปไฝ•็™ปๅฝ•ๆˆ–ๅ‡ญๆฎ่พ“ๅ…ฅใ€‚ๅ‰ๅพ€ github.com
Skip to content
opPublic

About

๐Ÿ‘ Clone a git repository and retain directory structure

Topics

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

ย 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘ Dolly the VCS clone tool

Dolly clones repositories with scientific precision. Handy if you want to keep your source tree pristine.

Before:

user@host:~/ $ mkdir -p ~/src/scm.com
user@host:~/ $ git clone https://scm.com/repo.git ~/src/scm.com/repo
Cloning into '/home/user/src/scm.com/repo'...

After:

user@host:~/ $ git dolly https://scm.com/repo.git
Cloning into '/home/user/src/scm.com/repo'...

โœจ Features

  • ๐Ÿ“‡ Keep your source tree tidy
  • ๐Ÿ“ฆ Clone with a single command
  • ๐Ÿฑ Supports Git and Mercurial (hg)
  • ๐ŸŒˆ Compatible with Go and GOPATH

โšก Requirements

  • Git
  • Python >= 3.6

๐Ÿ“ฆ Installation

Classic clone:

$ git clone https://github.com/op/dolly
$ install dolly/dolly /usr/local/bin

git:

# create symlink in PATH (or GIT_EXEC_PATH)
$ ln -s /usr/local/bin/{,git-}dolly

Mercurial (hg):

# add to ~/.hgrc or eg XDG_CONFIG_HOME, see hg help config
cat <<EOF >> $XDG_CONFIG_HOME/hg/hgrc
[alias]
dolly = !/usr/local/bin/dolly $@
EOF

โšฐ๏ธ Disclaimer

No sheep was harmed while making this tool. Dolly, rest in peace!

About

๐Ÿ‘ Clone a git repository and retain directory structure

Topics

Resources

Stars

4 stars

Watchers

2 watching

Forks

Contributors

Languages