matthiasblaesing commented on PR #7892:
URL: https://github.com/apache/netbeans/pull/7892#issuecomment-2453137636

   @wumpz not a stupid question :smile: 
   
   The first question would be "Why??": Github has a "Squash-and-Merge" Button. 
The problem is, that in contrast to git CLI, github tries to be clever on 
squash. git CLI uses the author information of the commits, github tries to 
interpolate author information from the public information of the account, 
github thinks is responsible for this. We had multiple cases where commits 
ended with mutilated author information: no email or githubs broken pseudo 
email, nickname instead of real name. The function is just not trustworthy.
   
   The second question: PRs are just copies of your local branches. The idea 
is, that you do a local squash of your commits. Pushing this modified branch is 
normally prohibited by the git client as it is a destructive action. You need 
to tell the git client that you want to do it by doing a "forced" push.
   
   Info about squashing: https://www.git-tower.com/learn/git/faq/git-squash, 
info about force pushing: 
https://git-scm.com/docs/git-push#Documentation/git-push.txt---force (it is 
just a flag when pushing)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to