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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A few git tips you didn't know about

154 点作者 mtodd将近 15 年前

4 条评论

dlsspy将近 15 年前
Inaccurate -- I wrote one of those. :)<p>But do note that instead of this:<p><pre><code> git checkout -t origin/feature </code></pre> You can do this:<p><pre><code> git checkout feature </code></pre> It'll find a branch named "feature" in one of your remotes and make a local branch that tracks it.
fragmede将近 15 年前
The article uses, but does not describe pbcopy and pbpaste on os x. Feed data to pbcopy, and it goes to the clipboard:<p><pre><code> pwd | pbcopy # Copies the working directory to the clipboard </code></pre> pbpaste outputs the clipboard contents:<p><pre><code> cd `pbpaste` # cd to the directory in the clipboard </code></pre> (I use this to go to the same dir in a second terminal) (There's Linux equivalent called, xsel does the same.)
评论 #1543915 未加载
评论 #1546169 未加载
joblessjunkie将近 15 年前
Good lord, the CSS on this page made me think I needed to get new glasses.
hartror将近 15 年前
Would be nice if those that needed 1.7+ were marked so.