Conversation
Co-authored-by: caspinos <16002933+caspinos@users.noreply.github.com> Agent-Logs-Url: https://github.com/caspinos/capacitor-fast-sql/sessions/9c5aa6cf-38fc-442a-9fca-c3ca288ae871
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cap-go/capacitor-fast-sqlmainvs upstreammain— 13 files differ (excluding README.md and package.json)upstream-contributionbranch locally based on upstream's latestmain(commitdf040f8)README.mdandpackage.jsonupstream-contributionlocallyupstream-contributionon push to PR branchupstream-contributionbranch is created on originOriginal prompt
Create a Clean Feature Branch for Upstream Contribution
The user has forked a repository and made improvements, but also changed
README.mdandpackage.jsonwith their own repository name and info. The goal is to prepare a clean branch that contains only the improvements, without any personal repo info changes, so it can be submitted as a pull request to the original upstream repository.Tasks
Identify the upstream/original repository that
caspinos/capacitor-fast-sqlwas forked from.Compare the fork's
mainbranch against the upstream's default branch to identify all changed files.Create a new branch (e.g.,
upstream-contribution) based on the upstream's latest default branch state.Apply all changes from
caspinos/capacitor-fast-sqlmainbranch EXCEPT:README.md— keep the upstream versionpackage.json— keep the upstream versionCommit the improvements (everything except the excluded files above) to the new branch
upstream-contribution.Push the branch
upstream-contributionto thecaspinos/capacitor-fast-sqlrepository.Expected Result
A branch named
upstream-contributionincaspinos/capacitor-fast-sqlthat:main/default branchREADME.mdorpackage.jsonThe following is the prior conversation context from the user's chat exploration (may be truncated):
User: I've forked a repository. I've made some improvements and also changed README and package.json with my repository name and info.
I want to create pull request to the original repo with my improvements but without my repo information.
What is the bast way to do it?
Assistant: The best approach is to create a dedicated feature branch in your fork that contains only your improvements, without the
READMEandpackage.jsonchanges. Here's the step-by-step plan:Recommended Approach: Create a Clean Feature Branch
1. Create a new branch from the original repo's latest state
In your local clone of your fork, fetch the upstream and create a clean branch from it:
2. Cherry-pick only your improvement commits
Identify the commits that contain your actual improvements (not the README/package.json changes) and cherry-pick them:
3. Push the new branch to your fork
4. Open the Pull Request
Go to the original repository on GitHub and:
mainbranch.my-improvements.See: Creating a pull request from a fork
Alternative: If commits are mixed (improvements + repo info in the same commit)
If you can't cleanly cherry-pick, use this approach:
Key Takeaway
The trick is: don't open the PR from your main/default fork branch (which has all your personal changes). Instead, use a separate branch that only includes the commits you want to contribute. This keeps your personal customizations (
README,package.json) out of the upstream PR entirely.User: prepare such brunch for this repo
Assistant: We're waiting for your response to the tool call dialog to continue.
This pull request was created from Copilot chat.
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.