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 workflow for addons.mozilla.org

54 pointsby tathagatadgover 13 years ago

4 comments

etherealGover 13 years ago
I like some of this, but I worry about rebasing that often after pushing. I understand the benefit of keeping the history cleaner, but it also means if any features <i>are</i> worked on by multiple people it would become impossible to use git's best feature of auto merging things.<p>What do you do when feature work is long standing and worked on by multiple people?
评论 #3262050 未加载
yesimahumanover 13 years ago
If you incorporate this with good deploy scripts, it becomes rather convenient to test topic branches in different environments. No more dev/stage/prod branches, just branch off master, test and deploy the topic branch to an environment, and merge it back in to master when it's ready to live in production. I believe this is what Github does internally.
评论 #3262930 未加载
loganlinnover 13 years ago
<p><pre><code> sync = "!f() { echo Syncing $1 with master &#38;&#38; git checkout master &#38;&#38; git pull &#38;&#38; git checkout $1 &#38;&#38; git rebase master; }; f" </code></pre> I believe this is equivalent to (from topic branch)<p><pre><code> sync = "git pull --rebase origin master"</code></pre>
评论 #3262291 未加载
evmarover 13 years ago
I believe the "fix" shell command is just<p><pre><code> git commit --amend</code></pre>
评论 #3262925 未加载
评论 #3264331 未加载