TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

301 点作者 guyzmo超过 8 年前

18 条评论

KZeillmann超过 8 年前
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 未加载
michaelmior超过 8 年前
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 未加载
seschwar超过 8 年前
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 未加载
0xmohit超过 8 年前
<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-py超过 8 年前
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 未加载
prh8超过 8 年前
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.
lucideer超过 8 年前
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 未加载
StavrosK超过 8 年前
&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 未加载
gbraad超过 8 年前
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 未加载
daddykotex超过 8 年前
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!
tommieb超过 8 年前
What about bitbucket?<p>I see references to lab and hub, is bitbucket missing?
评论 #12679713 未加载
评论 #12679561 未加载
pferde超过 8 年前
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?
Omnipresent超过 8 年前
Feature request - Add the ability to create a merge request from command line. Esp for GitLab
评论 #12679036 未加载
erikb超过 8 年前
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!
ponytech超过 8 年前
I am using a private gitlab instance. No support for this?
评论 #12682497 未加载
adamnemecek超过 8 年前
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 未加载
zymhan超过 8 年前
The site is now returning an error. I guess HN killed it?
评论 #12679661 未加载
syngrog66超过 8 年前
nice idea. bad name
评论 #12682406 未加载