Skip to content

Instantly share code, notes, and snippets.

@yashwanth-l
Created July 10, 2024 19:26
Show Gist options
  • Save yashwanth-l/dff8c63b8d65db70d5e509f8a8471ddb to your computer and use it in GitHub Desktop.
Save yashwanth-l/dff8c63b8d65db70d5e509f8a8471ddb to your computer and use it in GitHub Desktop.
git-cherry-pick.another-repo
# Add new-origin as a new remote origin:
git remote add new-origin https://github.com/example.git
# Fetch all of the remote branches and tags:
git fetch new-origin
# List the commits of a specific branch and cherry-pick a commit.
git log new-origin/<branch-from-new-repo>
git cherry-pick <commit>
# Remove the tracking of
git remote remove new-origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment