@elisha_langworth
There are a few ways to split a large merge request into smaller parts in Git:
1 2 3 4 5 6 7 8 9 |
git checkout -b feature-1 # Work on first part of merge request git add . git commit -m "Completed first part of merge request" git checkout -b feature-2 # Work on second part of merge request git add . git commit -m "Completed second part of merge request" |
1 2 3 |
git add -p # Interactively stage changes from your working directory git commit -m "Completed part of merge request" |
1 2 3 |
git rebase -i HEAD~3 # Replace "pick" with "squash" for the commits you want to squash # Save and close the editor |
After splitting your merge request into smaller parts, you can create separate merge requests for each part or merge them back into the main branch when they are ready.