question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove the "dev" branch and keep "main" as the development branch

See original GitHub issue

The dev branch seems redundant. The only apparent benefit it has is that people can get the stable release via

git clone https://github.com/PMEAL/OpenPNM

We could keep “master” the development branch, and those who are interested in cloning the stable release via git can do

git clone --branch <stable_release_tag_name> https://github.com/PMEAL/OpenPNM

Not to mention that people mostly download OpenPNM via PyPI and more recently conda, which always have the stable release.

An minor benefit of working with master as the development branch is that mentioning issues in pull requests using the following keywords:

  • close
  • closes
  • closed
  • fix
  • fixes
  • fixed
  • resolve
  • resolves
  • resolved

automatically closes the corresponding issue, which is certainly convenient.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jgostickcommented, Jul 2, 2020

That’s perfect. We should update the VERSIONING.md document though. We were required to have this document by canarie. I’ll change this on the new examples_galore branch.

0reactions
ma-sadeghicommented, Jul 2, 2020

We finally agreed to the following changes:

  • Keep merging latest code to dev branch as usual
  • Change the default branch from master to dev, which makes our GitHub landing page always up-to-date
  • Create a new branch called release (optionally delete master altogether to avoid confusion)
  • Merge dev onto release whenever we want to publish a minor/major/patch version
  • Occasionally, when a major bug is found that needs an immediate patch release, and at the same time, we’re not yet ready to release what’s on dev, directly merge the hotfix PR onto release, and cherry pick (or merge back) the hotfix commit and merge back onto dev.
  • Although the best practice remains that we avoid merging onto dev if a feature is not fully ready and therefore, the above case should ideally be an exception rather than a rule.
  • In the future, if we find out that we don’t have that many “special” hotfixes, we can get rid of the release branch altogether.

@jgostick Does that sum it up?

Read more comments on GitHub >

github_iconTop Results From Across the Web

git delete a file for a dev branch and keep it into the master ...
You can delete files from your dev branch without affecting your master branch. First switch to your dev branch: git checkout dev.
Read more >
Git Delete Branch – How to Remove a Local or Remote ...
The command for deleting a local branch that we just used doesn't work in all cases. If the branch contains unmerged changes and...
Read more >
How to delete all Git branches except master or main ...
Here is a quick Git command to delete all branches except master or main from your local repository. It's a nice way to...
Read more >
Git Delete Branch How-To, for Both Local and Remote
You'll learn how to delete branches, both locally and in your remote repositories, and whether it's possible to recover a deleted branch. Most ......
Read more >
How to delete the master branch - Kathrin Holzmann - Medium
Choose main branch as protected and set rules for allowance of merging, pushing and owner approval and save your changes. Press the Unprotect ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found