@samara
If you want to disable multiple commits in Git, you can squash them into a single commit before pushing your changes. Here are the steps to do that:
1
|
git log |
1
|
git rebase -i HEAD~<number of commits to squash> |
For example, if you want to squash the last 3 commits, use:
1
|
git rebase -i HEAD~3 |
1
|
git push origin <branch-name> --force |
Note: Be careful when using the --force
flag as it overwrites the commit history on the remote repository. Make sure you have the necessary permissions and communicate with your team before force pushing.