Skip to content
/ dolly Public

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

Notifications You must be signed in to change notification settings

op/dolly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 

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

Watchers

Forks

Languages