Comments (2)
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.
I'm closing this for now, please let me know if you feel strongly about this.
from git-town.
Related Issues (20)
- does not read the config file when running in a subfolder
- Automatically rebase with `--autosquash` to merge `fixup!` commits HOT 3
- Create a new feature branch as parent of the current branch and move over a few selected commits HOT 4
- How to programmatically detect when Git Town is syncing? HOT 2
- `git town set-parent` suddenly asks for parent information for other branches HOT 13
- Allow setting perennial-regex with negative lookahead HOT 3
- website: Change "advanced branch syncing" to "branch types"
- Unify the naming of the Git config and the TOML config
- `git-town hack` panic if HEAD if detached HOT 3
- sync fails with: `fatal: unsupported section for hidden refs: fetch` HOT 4
- `git hack` fail if main branch is missing HOT 2
- Sync should update the PR base branch when parent was changed using `set-parent` HOT 1
- `git town continue` after resolving conflicts for `git town sync` appears to perform `git town sync --all` HOT 4
- `git town undo` mysteriously force-pushed to a bunch of unrelated feature branches HOT 8
- Suggestion: Track modified branches during any operation, and only reset those branches during `git undo` HOT 6
- git sync: don't add new local branches
- [Request] git-town show-Lineage: HOT 5
- [Feature] Integrate fzf into git-town switch HOT 4
- propose entire stack
- ship: minimize / automatically resolve merge conflicts in stacks after shipping HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-town.