How to get rid of false dependencies in gerrit

后端 未结 3 1671
小蘑菇
小蘑菇 2021-02-08 08:32

It appears that when using gerrit, by default all changes depend on the previous one. I do not branch for new changes, I simply work off the master branch and then push the comm

3条回答
  •  清歌不尽
    2021-02-08 09:09

    As a variant to git reset --hard HEAD~1 I use this instead:

    git reset --hard origin/master
    

    Assuming, I'm working in master for a quick change.

    Otherwise, working in a topic branch is much preferred.

    There are many Git scripts to help manage topic branches:

    • git-flow
    • git extras
    • git create-branch

    I'm sure there are others.

提交回复
热议问题