Created
July 10, 2024 19:26
-
-
Save yashwanth-l/dff8c63b8d65db70d5e509f8a8471ddb to your computer and use it in GitHub Desktop.
git-cherry-pick.another-repo
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
| # 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