| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Yes, it's important to use development branches. I've honestly never seen the type of muddle you've gotten into here. My approach to git is to learn a recipe that works, and not worry too much about how it all works behind the scenes. The recipe outlined in the stdpopsim docs should work if you follow it to the letter... |
Sorry, something went wrong.
|
What I'd do here: git checkout -b dev-branch git rebase -i upstream/main git push then create a new PR from dev-branch. It should squash cleanly |
Sorry, something went wrong.
|
I've done the squash, which you can pull down with git fetch origin && git reset --hard origin/main assuming your fork is origin. |
Sorry, something went wrong.
|
@jeromekelleher ok, I think it was not-using-a-branch that set me down the wrong path. My fault and lesson learned. @benjeffery thanks for squashing the commit in the PR - I followed your suggestion on my end as well. @hyanwong can you review the changes? Next edits will come from a branch (fingers crossed). |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
OK, I now followed https://popsim-consortium.github.io/stdpopsim-docs/stable/development.html#rebasing but I was going in circles with rebasing and squashing:) I got to this stage. I think the challenge in following the advice the docs (as well as at https://popsim-consortium.github.io/stdpopsim-docs/stable/development.html#when-rebasing-goes-wrong) is that I did not create a branch. Is this why I was going in circles? Below is my log if anyone cares helping me with squashing or we just get these last commits merged in?
> git fetch upstream > git log commit 9f9b7850ffd5378be2b7941194999ed100281a42 (HEAD -> main, origin/main, origin/HEAD) Author: Gregor Gorjanc <gregor.gorjanc@gmail.com> Date: Mon Sep 23 07:33:24 2024 +0100 Minor edits to what_is.md, getting_started.md, and terminology_and_concepts.md commit 70f1380cda617930ebd79347cf47a26c5646de1b Author: Gregor Gorjanc <gregor.gorjanc@gmail.com> Date: Sat Sep 21 09:22:30 2024 +0100 Minor edits to terminology_and_concepts.md commit f6dcc9b18878a3f1525ffe16d1407893ec20eaaf Author: Gregor Gorjanc <gregor.gorjanc@gmail.com> Date: Fri Sep 20 07:41:36 2024 +0100 Minor formatting what_is.md commit a340e5264deaf03a9eb5827ca61d1e894cb40e48 (upstream/main) Merge: 126cbd5 481bcdc Author: Yan Wong <yan.wong@bdi.ox.ac.uk> Date: Fri Sep 20 11:08:15 2024 +0100 Merge pull request #278 from gregorgorjanc/main Minor tweaks to improve flow and clarity commit 481bcdcf1e4b3291952b8c4b03406753af6ff157 Author: Gregor Gorjanc <gregor.gorjanc@gmail.com> Date: Thu Sep 19 07:04:51 2024 +0100 Minor tweaks to improve flow and clarity commit 126cbd57d84a691f8aa6ac2acdc90fed14e97d33 Merge: 88195b7 88f4a42 Author: Jerome Kelleher <jk@well.ox.ac.uk> Date: Thu Jul 25 14:07:26 2024 +0100 Merge pull request #274 from hyanwong/arg-wording Update terminology to reflect ARG paperOddly, the opened git-rebase-todo file was empty despite 3 commits since the upstream/main!? Anyway trying to instruct this:
I also did not get the commit message change!?, so I did
> git log commit d62460b0405026cd5f1b7f361907809d4e164878 (HEAD -> main) Author: Gregor Gorjanc <gregor.gorjanc@gmail.com> Date: Mon Sep 23 07:33:24 2024 +0100 Minor edits to what_is.md, getting_started.md, and terminology_and_concepts.md commit 70f1380cda617930ebd79347cf47a26c5646de1b Author: Gregor Gorjanc <gregor.gorjanc@gmail.com> Date: Sat Sep 21 09:22:30 2024 +0100 Minor edits to terminology_and_concepts.md commit f6dcc9b18878a3f1525ffe16d1407893ec20eaaf Author: Gregor Gorjanc <gregor.gorjanc@gmail.com> Date: Fri Sep 20 07:41:36 2024 +0100 Minor formatting what_is.md commit a340e5264deaf03a9eb5827ca61d1e894cb40e48 (upstream/main) Merge: 126cbd5 481bcdc Author: Yan Wong <yan.wong@bdi.ox.ac.uk> Date: Fri Sep 20 11:08:15 2024 +0100 ... > Not sure why the commits are not squashed!?