0

I made a Pull Request that had only one commit. This commit includes some changes like:
adding function a() and function b().

How can I divide this commit into two commits, so
the first commit will have the changes related to function a()
the second commit will have the changes related to function b()

Can I do this? and How?
Thanks in advance.

Abanoub Asaad
  • 510
  • 4
  • 14
  • 1
    https://stackoverflow.com/search?q=%5Bgit%5D+split+commit – phd May 18 '21 at 12:39
  • 1
    After rewriting history with `rebase` or `reset` you need to force push the branch: `git push --force` – phd May 18 '21 at 12:39

0 Answers0