>    1. First commit 
>>>>    2. Second commit 
>>>>    3. Third commit 
>>>>    4. fourth commit 
>>>>    5. Fifth commit 
>>>> But now i want to rebase and want to merge the first and last commit 
>>>> and remove the all middle commits.
>>>execute this
>>>git rebase -i HEAD~5
>>>this will open vi(m) editor with something resembling below
>>>pick 3a3781e commit 5
>>>pick d3838a4 commit 4
>>>pick 51715bc commit 3
>>>pick d97e543 commit 2
>>>pick 9bf874ed commit 1
>>>delete lines which you want to get rid of, save and exit. your job is done
>>>have courage to read documentation, asking question won't take you far. 

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to