integration manager workflow and rebasing
play

Integration-Manager Workflow and Rebasing Sign in on the attendance - PowerPoint PPT Presentation

Lecture 8 Integration-Manager Workflow and Rebasing Sign in on the attendance sheet! Remember the Centralized Workflow? Problem: Every developer needs push access to the shared repository! Integration-Manager Workflow Github/ The cloud


  1. Lecture 8 Integration-Manager Workflow and Rebasing Sign in on the attendance sheet!

  2. Remember the Centralized Workflow? Problem: Every developer needs push access to the shared repository!

  3. Integration-Manager Workflow Github/ “The cloud” Local Computer

  4. Step 1. Fork the public repository (make your own public copy)

  5. Step 1. Fork the public repository Developer Blessed Public Repository Repository

  6. Step 2. Clone your public repository $ git clone https://github.com/aperley/Autolab.git Developer Blessed Public Repository Repository Developer Private Repository

  7. Step 3. Create a feature branch and make some commits $ git checkout -b my-feature Developer $ <do some work> Public $ git commit -am "add my feature" Repository Then push your feature branch to your public repository $ git push origin my-feature Developer Private Repository

  8. Step 4. Create a pull request

  9. The integration manager can inspect and pull in in your changes As the integration manager: $ git remote add aperleys-fork https://github.com/aperley/Autolab.git $ git checkout aperleys-fork/my-feature If it looks good: $ git checkout master $ git merge aperleys-fork/my-feature $ git push origin master

  10. The integration manager can inspect and pull in in your changes Developer Blessed Public Repository Repository Integration Developer Manager Private Repository Repository

  11. You need to keep your fork up to date In the private developer repo $ git remote add upstream https://github.com/autolab/Autolab.git $ git fetch upstream $ git checkout master $ git merge upstream/master $ git push origin master

  12. You need to keep your fork up to date Developer Blessed Public Repository Repository Integration Developer Manager Private Repository Repository

  13. Git Rebase: Squashing Commits ✔ X X

  14. Squashing Commits Scenario: Made some commits on a feature branch but want to “clean it up” before making a pull request or merging to master

  15. Squashing Commits $ git rebase -i master Begins an interactive rebase of all of the commits since the branch split off of master.

  16. Interactive Rebase

  17. Decide what you want to squash onto the commit above (before)

  18. Now we need to edit the commit message for the first squash group

  19. Same for the second squash group

  20. We are left with a new commit history

  21. What happened? We rewrote history by replaying the patches for each commit Implement Base Commit Bugfix Spelling fix Add tests Fix a test Feature Implement feature and Base Commit Add tests bugfix and spelling fix

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend