You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- that's awesome. I just played around with some "git branch foo old-merge-sha1" stuff and that's just amazing.Hans– Hans2010-08-06 03:32:06 +00:00Commented Aug 6, 2010 at 3:32
- Is it best practice to create a branch off master for "FeatureA" then branch off "FeatureA" again for topic(s), merging them into FeatureA when they are ready, but not touching master until the entire FeatureA is ready, when you'd merge FeatureA into master? Right now (in svn) if I'm working on something that is going to take a few weeks and need a hotfix, I do what I described in my question (svn up path/to/filename) and then move on. Git branching seems to be a "merge often" recommendation, but what if I don't want the master/trunk touched until ready, so I can freely update the web site.Hans– Hans2010-08-06 03:41:31 +00:00Commented Aug 6, 2010 at 3:41
- 2@Hans: You don't merge until, well, it's time to merge. Usually master is a current stable branch, so you could move a partial but stable feature if you wanted, but in general you should only merge complete things. And it's quite possible to have several stable branches of different flavors - one for a given relase (for your web site), one for current stable testing, one for unstable testing... just make sure always to merge in the right direction (topic -> feature -> master or unstable -> stable).Cascabel– Cascabel2010-08-06 03:58:07 +00:00Commented Aug 6, 2010 at 3:58
- 2@Hans: You might find Junio Hamano's article on branch/merge philosophy helpful: gitster.livejournal.com/42247.html and you might also like this article about a "branching model" nvie.com/git-modelCascabel– Cascabel2010-08-06 03:59:47 +00:00Commented Aug 6, 2010 at 3:59
- You should bold out the cherry-pick rule of thumb: don't!cregox– cregox2013-12-04 15:07:49 +00:00Commented Dec 4, 2013 at 15:07
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you