{"id":21096417,"url":"https://github.com/githubtraining/example-rebase--onto","last_synced_at":"2025-05-16T16:30:31.845Z","repository":{"id":29731974,"uuid":"33275250","full_name":"githubtraining/example-rebase--onto","owner":"githubtraining","description":"A very simple repo to demonstrate rebasing with \"rebase onto\"","archived":true,"fork":false,"pushed_at":"2019-04-10T08:16:38.000Z","size":252,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T07:21:22.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/githubtraining.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-01T21:58:32.000Z","updated_at":"2024-01-22T16:27:07.000Z","dependencies_parsed_at":"2022-07-24T16:32:06.601Z","dependency_job_id":null,"html_url":"https://github.com/githubtraining/example-rebase--onto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubtraining%2Fexample-rebase--onto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubtraining%2Fexample-rebase--onto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubtraining%2Fexample-rebase--onto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubtraining%2Fexample-rebase--onto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubtraining","download_url":"https://codeload.github.com/githubtraining/example-rebase--onto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254567226,"owners_count":22092730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T22:36:32.184Z","updated_at":"2025-05-16T16:30:31.594Z","avatar_url":"https://github.com/githubtraining.png","language":null,"readme":"# rebase-example\nA very simple repo to demonstrate rebasing with \"rebase onto\"\n\nShowing how you can move one branch that was branched off incorrectly from another feature branch back onto master as its base. \n\n### Steps Taken to Demonstrate\n1. Branched the `feature-branch` branch (repetitive, I know) off of the master branch\n2. Created a few commits on the `feature-branch`\n3. Branched the `v1.0` branch from `feature-branch` (this would be an example of someone inadvertantly branching off of the wrong branch)\n4. Added some commits to the `v1.0` branch.\n5. Realized the `v1.0` branch was in the wrong location. \n6. Removed it from the `feature-branch` by using the `git rebase --onto` command. This is the executed command:\n  - `git rebase --onto master feature-branch v1.0`\n7. The commits on the v1.0 branch are not appended to the master branch\n\nBranches Before the Rebase:\n\n![Rebase \"before\" example](before_rebase.png)\n\nBranches After the Rebase:\n\n![Rebase \"after\" example](after_rebase.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubtraining%2Fexample-rebase--onto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubtraining%2Fexample-rebase--onto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubtraining%2Fexample-rebase--onto/lists"}