Earlier quoted context omitted.
I agree with you, but only for local commits that haven't been pushed to a shared repo. Rewriting local history seems no different than rewriting code in your editor. Rewriting shared history is (almost) always bad.
Making 'temporary' commits and rewriting local history before pushing to a shared repo has analogs in other revision control systems: * In Subversion, people track patches using tools like quilt to manage them before actually putting them together into a commit. * In Mercurial, people use `hg mq` which is like a more featureful version `git-stash`. These are basically all ways to track a series of patches prior to 'c…
GitFlow considered harmful
331–340 of 342 posts
Re: GitFlow considered harmful
#332Earlier quoted context omitted.
Then someone else rebases over that commit, there's a conflict and lo! the tests fail. Why? typo. It's fixed in the subsequent commit (which you can't see). Lovely. There's something to be said for having every commit pass tests/work (or if it doesn't saying explicitly in the commit message), if anyone is ever going to step over this commit.
That's a hard one; trying to make a single commit in a pull request helps me but sometimes even then a pull request gets ignored and they want me to rebase it. The problem is they ask /me/ to rebase it; I think they should take a little ownership in the potential rewriting of history.
Re: GitFlow considered harmful
#333Earlier quoted context omitted.
Please let me know what you think we should improve to support that workflow better. Anyway, I think my examples are still valid, it is harder to mention issues and you can't push (write) commits on forks since your have read permissions.
I have already created a feature request here - http://feedback.gitlab.com/forums/176466-general/suggestions... The main assumption in the Integration-Manager workflow is that code from repositories of other users is always pulled by the owner of the current repository as and when appropriate. So if dev1 and dev2 are working on the same feature in 2 different forks of the main repository, dev1 has to pull commits fro…
Re: GitFlow considered harmful
#334Earlier quoted context omitted.
Parent was deleted.
Ugh dammit. Short version: Instead of taking the branch and rebasing it, make a branch called .1 on top of , then rebase that, leaving in place. That way all your references remain intact and you can compare CI results. Increment the number as needed.
Re: GitFlow considered harmful
#335Earlier quoted context omitted.
I agree with you, but only for local commits that haven't been pushed to a shared repo. Rewriting local history seems no different than rewriting code in your editor. Rewriting shared history is (almost) always bad.
Does anyone advocate rewriting shared history? Oddly I see this "exception" a lot in reply to this person but I'm not sure I ever read anywhere anyone saying rewriting shared history is a good idea.
Re: GitFlow considered harmful
#336Earlier quoted context omitted.
I agree with you, but only for local commits that haven't been pushed to a shared repo. Rewriting local history seems no different than rewriting code in your editor. Rewriting shared history is (almost) always bad.
I don't think I've ever seen anyone advocate rewriting shared history.
Re: GitFlow considered harmful
#337Earlier quoted context omitted.
I don't think I've ever seen anyone advocate rewriting shared history.
I've came across reasons, but they've always been pretty marginal, such as somebody checking in sensitive credentials without realising what they were doing.
Re: GitFlow considered harmful
#338Earlier quoted context omitted.
Ugh dammit. Short version: Instead of taking the branch and rebasing it, make a branch called .1 on top of , then rebase that, leaving in place. That way all your references remain intact and you can compare CI results. Increment the number as needed.
It solves the issue of the CI references. But it also seems a bit clumsy to me.
Re: GitFlow considered harmful
#339Earlier quoted context omitted.
I've came across reasons, but they've always been pretty marginal, such as somebody checking in sensitive credentials without realising what they were doing.
I think I would like the ability to edit commit messages for typos without having to force everyone to reset --hard.
What I do to avoid that is work on a separate branch, rebase against master, then review the commits on my branch after getting rid of any WIP commits and shuffling them around to make more sense. Finally, I make sure the commit messages are (a) accurate and (b) have no typos. Once I'm satisfied with that, I merge.
I treat merging as a big deal, but not committing.
Re: GitFlow considered harmful
#340GitLab CEO here. I agree that GitFlow is needlessly complex and that there should be one main branch. The author advises to merge in feature branches by rebasing them on master. I think that it is harmful to rewrite history. You will lose cherry-picks, references in issues and testing results (CI) of those commits if you give them a new identifier. The power of git is the ability to work in parallel without getting i…
I'm starting to think that part of the problem we are facing at the moment is that feature branching itself can be exceptionally harmful. I see statements like "The power of git is the ability to work in parallel without getting in each-others way" and get really worried about what people are trying to achieve. I want my team's code to be continuously integrated so that problems are identified early, not at some arbi…