Git Product home page Git Product logo

Comments (2)

kevgo avatar kevgo commented on August 16, 2024

Hmm, what is the exact scenario here? Why can't you simply cut a new branch off master if you want all your changes in a different branch than master?

In any case, "git extract" from master is not even possible. You have to cut a feature branch from a branch that does not contain your commits (this is typically master). Then cherry-pick some commits from a feature branch into them. Then you can submit a pull request against master, which compares your branch against master and thereby sees the diff. If master already contains your commits, there is no diff, an empty pull request, and no merge possible.

This is also bad coding behavior that I don't want to encourage. Ideally branches are in synchronization with their remote tracking branches. You shouldn't develop on master and rely that these commits are only local.

I think that's the same for forked repos. You should develop on feature branches there as well, then PR them against the main repo's master.

What do you think?

from git-town.

kevgo avatar kevgo commented on August 16, 2024

I'm closing this for now, please let me know if you feel strongly about this.

from git-town.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.