![]() Step 4 - publish your changes to origin # Push your commit(s) to ORIGIN # Commit your changes: decide what to commit ![]() # Commit your changes: let's git decide what's changed # Now you have changed something and want to commit # optionally push your new branch to ORIGIN Step 3 - Create a branch # Create a LOCAL branch "feature-x" Step 2 - Clone to your local computer # Let's clone it I’m not sure if I’m doing right, expecialy for steps 8 and 9. I’ve tried to integrate the steps for the command line usage. For now I will just say that deleting your repositories and starting over is not the right way to do it - this causes a lot of issues if you still have un-merged PRs open somewhere! How to do this syncing is probably a good thing to cover also. When you’re starting a second pull request and you already have Origin and Local set up, then you just need to make sure all your repositories are synced together and you can start with Step 3 in the tutorial. Each location serves its purpose - Upstream is official, Origin is where you can push your changes and ask people to look at them, and Local is where you do your work. I see the rest of the steps as completing a cycle: you start with all 3 locations in sync, and then you end with all 3 locations in sync. It’s not really “Upstream to Origin then Local” so much as “create Origin and Local in the first place so that I can work with them”. Steps 1 and 2 are one-time things to set up your “origin” and “local” repositories. This is a good question, I hadn’t thought about it like that before. ![]() In steps 8&9 it goes Upstream to Local then Origin My query was in steps 1&2 Upstream to Origin then Local.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |