Closed tumbleshack closed 4 years ago
Thanks for the feedback. can you please
- create a separate Pull request for this? the flow that I have seen worked well is create a pull request for each change. it's easier to manage over time as we don't have to deal with stacking too many changes together.
- for the popup, I was more thinking about this one: https://codesandbox.io/s/yiwhw
Would you like that type of popup for the contributors' credit as well? Yes I do. We will have more real estate and control to work with. Thanks!
@xunhuang , I cannot for the life of me figure out how to get rid of that huge stack of commits. I've been struggling with this all afternoon. Every time that I make a PR, they're all there. Do you have any tips?
https://stackoverflow.com/questions/14635672/rebase-a-single-git-commit
On Thu, Apr 30, 2020 at 2:04 PM tumbleshack notifications@github.com wrote:
@xunhuang https://github.com/xunhuang , I cannot for the life of me figure out how to get rid of that huge stack of commits. I've been struggling with this all afternoon. Every time that I make a PR, they're all there. Do you have any tips?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xunhuang/covid-19/pull/94#issuecomment-622110942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSGF5NZ2XEVZAC35QEWVLRPHRVJANCNFSM4MWPFWMA .
I just tried it,
git checkout master
git cherry-pick
this worked. Replace "master" with whatever branch you want to be in.
On Thu, Apr 30, 2020 at 2:07 PM Xun Wilson Huang xhuang@gmail.com wrote:
https://stackoverflow.com/questions/14635672/rebase-a-single-git-commit
On Thu, Apr 30, 2020 at 2:04 PM tumbleshack notifications@github.com wrote:
@xunhuang https://github.com/xunhuang , I cannot for the life of me figure out how to get rid of that huge stack of commits. I've been struggling with this all afternoon. Every time that I make a PR, they're all there. Do you have any tips?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xunhuang/covid-19/pull/94#issuecomment-622110942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSGF5NZ2XEVZAC35QEWVLRPHRVJANCNFSM4MWPFWMA .
I created a new branch, cherry-picked in the commit I wanted, pushed it to my origin, then tried to open a PR merging my new branch into your master, and it brought the stack of 27 commits along with it
my branch is called footerAsPopup. Can you also try to open this PR?
probably your new branch was off your old branch. You should pull from master, that should have non your changes. Create a branch off that (master), and then cherrypick your change into that new branch, and create PR. delete your old branch as quickly as possible as it's already merged.
On Thu, Apr 30, 2020 at 2:52 PM tumbleshack notifications@github.com wrote:
I created a new branch, cherry-picked in the commit I wanted, pushed it to my origin, then tried to open a PR merging my new branch into your master, and it brought the stack of 27 commits along with it
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xunhuang/covid-19/pull/94#issuecomment-622134852, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSGF6VWQMBKO2F57OVGPLRPHXJDANCNFSM4MWPFWMA .
I think the problem is in master
. I guess git thinks that all those commits are not yet part of 'master'? I did the following:
master
; fetch upstream
(your repo) upstream/master
and push to origin
(my fork)master
origin
(my fork)I think you didn't create a feature branch at the beginning so your master was dirty. I suggest that you do a git show for your last commit, save it. Delete everything and do a git clone again to start fresh. manually redo your change again (from the saved git diff).
On Thu, Apr 30, 2020 at 3:12 PM tumbleshack notifications@github.com wrote:
I think the problem is in master. I guess git thinks that all those commits are not yet part of 'master'? I did the following:
- delete my broken feature branch
- checkout master; fetch upstream (your repo)
- merge upstream/master and push to origin (my fork)
- Create a new feature branch off of master
- Check out the new branch, make some changes, commit them
- push the commit to a new upstream branch on origin (my fork)
- Create a PR, observe that all 28 commits are
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xunhuang/covid-19/pull/94#issuecomment-622143745, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSGF5KFL4R5AP73EQIOKDRPHZWHANCNFSM4MWPFWMA .
That did the trick! Thanks for your help! I did:
git reset --hard upstream/master
git push origin master --force
happy to help. Glad you are so persistent. Once a while we all get into something minor, feel free to ping me.
On Thu, Apr 30, 2020 at 5:08 PM tumbleshack notifications@github.com wrote:
That did the trick! Thanks for your help! I did:
git reset --hard upstream/master git push origin master --force
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xunhuang/covid-19/pull/94#issuecomment-622184119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSGF23HG57B3WPDOJYQ6TRPIHIFANCNFSM4MWPFWMA .
Thanks for the feedback. can you please
1) create a separate Pull request for this? the flow that I have seen worked well is create a pull request for each change. it's easier to manage over time as we don't have to deal with stacking too many changes together.
2) for the popup, I was more thinking about this one: https://codesandbox.io/s/yiwhw