I have 2 branches develop and squashed-develop. The commits in the develop branch are as follows:
b18aa3e - Fri Jan 11 15:08:55 2019 +0500
f47109f - Fri Jan 11 14:05:40 2019 +0500
0d7389f - Thu Jan 10 15:58:42 2019 +0500
98760df - Thu Jan 10 14:22:44 2019 +0500
4d8008d - Thu Jan 10 11:59:07 2019 +0500
1b63480 - Thu Jan 10 11:36:57 2019 +0500
d2ae644 - Thu Jan 10 11:26:48 2019 +0500
fd5ba74 - Thu Jan 10 11:11:35 2019 +0500
add2106 - Thu Jan 10 09:28:48 2019 +0500
Now i want to squash the commits that i get in the develop branch each day into a single commit and push them to the squashed-develop branch so that the work done each day is combined into a single commit in the squashed-develop branch.
So for example the commits of January 10 would be combined into a single commit and pushed to the squashed-develop branch. same would be the case with January 11 etc.
using interactive rebase mentioned here, i checked out a new branch from the develop branch, named it squashed-develop,and squashed all the initial commits of January 10th branch into a single commit
The problem is that i cant seem to figure out how will i be able to squash the commits of January 11 or January 12 in the develop branch and then push those squash commits to the squashed branch?
How can i achieve this? Thanks!