TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

301 pointsby guyzmoover 8 years ago

18 comments

KZeillmannover 8 years ago
I really enjoy how the author broke down both the problem and the solution, explaining why the existing solutions are inadequate. I often see articles about new products or new programming languages, and their features, but they often forget to mention what problem prompted the solution. Why was a new language invented to solve this problem? Why were the existing solutions limiting?<p>Bravo to the author here for making all that information clear and up-front.
评论 #12678496 未加载
michaelmiorover 8 years ago
I use hub[0] to accomplish some of the same things. `hub fork` creates a fork and sets up a new remote. After pushing to my fork, `hub pull-request` creates a pull request.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;github&#x2F;hub" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;github&#x2F;hub</a>
评论 #12678986 未加载
评论 #12681279 未加载
评论 #12678387 未加载
seschwarover 8 years ago
There&#x27;s also git-spindle for this:<p>- <a href="https:&#x2F;&#x2F;seveas.github.io&#x2F;git-spindle&#x2F;" rel="nofollow">https:&#x2F;&#x2F;seveas.github.io&#x2F;git-spindle&#x2F;</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;seveas&#x2F;git-spindle" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;seveas&#x2F;git-spindle</a>
评论 #12679063 未加载
评论 #12679198 未加载
0xmohitover 8 years ago
<p><pre><code> then you watch the code, create a branch: git checkout -b `bugfix&#x2F;nasty_one` </code></pre> Please remove backticks from the command. What if you called the branch `poweroff` instead and a naive reader copy&#x2F;pasted the command into her terminal?
评论 #12678540 未加载
评论 #12678991 未加载
awinter-pyover 8 years ago
Cool but &#x27;repo&#x27; is a really hard name to search.<p>There&#x27;s already a tool by this name and they have the same problem.<p><a href="https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;git-repo&#x2F;" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;git-repo&#x2F;</a>
评论 #12679019 未加载
评论 #12680660 未加载
prh8over 8 years ago
I really like that this works for all services interchangeably. Yes, Github created Hub for this same problem, but I&#x27;ve used Bitbucket at some jobs and Gitlab personally for some projects. Having something uniform and service agnostic is great. It&#x27;s clear the creator thought a lot about this design feature.
lucideerover 8 years ago
This is wonderful. I&#x27;d guess that this little tiny bit of extra friction is enough of a disturbance to the workflow for private local&#x2F;personal&#x2F;work projects to prevent many from bothering to contribute back in some cases (I&#x27;m definitely guilty here).
评论 #12679113 未加载
StavrosKover 8 years ago
&gt; The git utility has a rather well designed interface to make it easy to remember, extend, and&#x2F;or customize<p>&gt; (which nobody does, because who remembers the git remote syntax?<p>I wish we would move on from the &quot;git has good UX&quot; narrative, it&#x27;s preventing us from <i>actually</i> improving the UX.
评论 #12680018 未加载
gbraadover 8 years ago
The name is slightly problematic as Google also released something with the same name: used for Android to solve the issue with multiple repositories instead of submodules.<p>Besides that, looks interesting and I will give it a try!
评论 #12682389 未加载
daddykotexover 8 years ago
Goood, I&#x27;d really like to try it out. I&#x27;m tired of opening the browser go to my fork and create a branch to make a MR&#x2F;PR for the project I&#x27;m working out.<p>I will really try it out. Thanks!
tommiebover 8 years ago
What about bitbucket?<p>I see references to lab and hub, is bitbucket missing?
评论 #12679713 未加载
评论 #12679561 未加载
pferdeover 8 years ago
I&#x27;m amazed that nobody has commented yet about how this is a CLI wrapper around web services which are wrappers around a CLI tool. Or is everyone here already too jaded and so used to piling endless abstractions upon abstractions that this is considered normal?<p>How about if people simply accepted patches via e-mail, instead of requiring those obnoxious github pull requests?
Omnipresentover 8 years ago
Feature request - Add the ability to create a merge request from command line. Esp for GitLab
评论 #12679036 未加载
erikbover 8 years ago
Honestly, I just opened the post to find ridiculous things to criticise. But in fact this looks like a valid helper. Sure I don&#x27;t have the same workflow, but this one seems to work as well. Good work!
ponytechover 8 years ago
I am using a private gitlab instance. No support for this?
评论 #12682497 未加载
adamnemecekover 8 years ago
I&#x27;m surprised Github et al. haven&#x27;t tried to contribute some functionality for doing this to git. The thing described in the article is extremely common.
评论 #12678286 未加载
zymhanover 8 years ago
The site is now returning an error. I guess HN killed it?
评论 #12679661 未加载
syngrog66over 8 years ago
nice idea. bad name
评论 #12682406 未加载