Hi SymPy Community,

Few days ago I ran into a problem regarding Git and GitHub;

*Problem*: Whenever I try to make a PR by creating a new branch from master 
branch, the past commits showed up in the commit history (which I think is 
the commits made from the master branch) .

*Description*: Every time I made a PR the commit history was like 12-14 
commits and it was quite bad since even if I was making a few changes then 
also along with my recent 1 commit there were past 12 commits with it in 
the commit history.
I tried searching as much as possible what to do then I learned about 
rebase to edit the commit history and I tried that but I was able to see 
just the 1 recent commit there and nothing else so, I was confused a lot.
*Now,*
*I think the problem probably is that I made some commits from the master 
branch itself and then even if I do something like fetch and merge, update 
the forked repository then also every time I try to create a new PR from a 
new branch created from master branch then also it is showing that past 
commits.*
*I realize this was my big mistake to make commits from master branch and I 
will avoid making any change in the master branch in future.*

*Is there any solution to this so that I can make PR and have the commits 
only related to the changes I made and not the past commits.*

*I asked on GitHub support there 1 solution I found was to delete the fork 
and refork the repository, 2nd solution I found was to create a branch from 
the upstream repository and merge branch to it but I am rookie at these 
things and was not able to understand that.** I want to know if there are 
any other solutions to this.*

Recently,
I created an *issue* <https://github.com/sympy/sympy/issues/23136> related 
to the documentation in the stats module but again when I tried to make a 
PR there I got past 12 commits to see, therefore I used my another github 
account which I use on Linux to make a new *PR* 
<https://github.com/sympy/sympy/pull/23137> where I just had 1 commit in 
commit history that's what I wanted to see.

*(It's okay with me to refork the repository again after 2 PR I opened  
gets merged because a few days ago I messed up everything while making a PR 
due to commit history I was trying to clean up and most people's commit 
showed up there which I feel bad about even today *; (* and this time I 
don't want to make any mess with the PR I made)*

Please, provide some guidance.
Thank You!

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/ca9fa4c6-3015-4381-afa9-da3d43d10907n%40googlegroups.com.

Reply via email to