grdl / git-get Goto Github PK
View Code? Open in Web Editor NEWA better way to clone, organize and manage multiple git repositories
License: MIT License
A better way to clone, organize and manage multiple git repositories
License: MIT License
Steps to reproduce:
❯ mkdir new-repo
❯ cd new-repo
❯ git init
❯ git list -r .
.
└── error
Oops, errors happened when loading repository status:
git rev-parse --symbolic-full-name --abbrev-ref HEAD failed on .: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git ls-remote --get-url failed on .: fatal: No remote configured to list refs from.
Right now git-get relases two binaries: git-get
and git-list
. Consider building only a single git-get
binary and embed the list
functionality into it (eg, git get list
or git get --list
).
It was suggested by the creator of git-bug based on disuccions about his project on git mailing list (link to the thread).
Releasing only a single binary would reduce the "namespace grabbing" and may make more sense semantically since git list
refers to repos managed by git get
anyway.
It would be great if git-get would have a flag to change to the newly created directory.
Currently one has to copy the path and cd into it.
I ran ./get github.com/grdl/git-get
which failed because I forgot the https://
, but it left behind a bunch of empty folders.
richard master … github.com grdl git-get ./get github.com/grdl/git-get
Cloning into '/home/richard/repositories/github.com/github.com/grdl/git-get'...
remote: Not Found
fatal: repository 'https://github.com/github.com/grdl/git-get/' not found
Error: "git clone https://github.com/github.com/grdl/git-get /home/richard/repositories/github.com/github.com/grdl/git-get": exit status 128
richard master … github.com grdl git-get tree ~/repositories
/home/richard/repositories
└── github.com
└── github.com
└── grdl
3 directories, 0 files
I think it'd be nice to delete those if the command fails.
Maybe it could `git clone ... target/directory.tmpXXXX and then rename that after the command succeeds and delete it if the command fails.
I have a "work" repository where I clone all of the repositories that I work on at work. They are not submodules, I just clone them and manage them individually (the root repository is for organization and has some extra work-related utilities). When I update GITGET_ROOT
to the root of the work repository, and then run git list
, I get:
/home/sumner/projects/github.com/sumnerevans/beeper
└── master [ 3 uncommitted 1 untracked ]
When I run git get
, it clones the repositories to the correct location, but git list
does not handle it properly.
This is a great tool, thank you! I would suggest that sometimes the hostname is redundant in the tree structure, and it might be nice to have an option to ignore it. So instead you'd just have <root>/<user>/<repo>
rather than <root>/<host>/<user>/<repo>
I ran git list
with a non-existent repo directory and got an error, but it doesn't tell me which directory it tried to access.
richard master … github.com grdl git-get rm -rf ~/repositories/
richard master … github.com grdl git-get ./list
Error: directory doesn't exist or can't be accessed
support to resume from break point ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.