search

Home  >  Q&A  >  body text

How does git delete branches that have been merged into the master and online branches and have not been committed within three days?

As the title says
git branch -r --merged origin/online
This command can do some things, but it takes three days

ringa_leeringa_lee2794 days ago774

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-02 09:28:35

    Standardize branch naming, this is the way we adopt it in practice.

    For example, if you create a new feature branch, you can name it feature/something_awsome-nickname-151209.

    Explain:

    • feature means that this is a feature branch, release and hotfix are also similar.

    • /, used to separate branch types and specific names.

    • something_awsome, which is a short description of the function, separated by underscores.

    • -, separator

    • nickname, creator’s abbreviation

    • 151209, creation date

    Regarding branch naming, I compiled the branch specifications with reference to Git flow.

    reply
    0
  • Cancelreply