Suppose we have two branches, master and local_branch and I have some commits in my_branch. I push all of my commits to repository and we assume when I use:
git log --pretty=oneline
These lines will be showed to me:
c682f01 (origin/local_branch) add final changes.
1bad4de add some local changes 2.
ef7d35e add some local changes 1.
f719c75 temp commit!
f0dcf28 some local changes.
adc5be1 (origin/master, origin/HEAD, master) Add design decisions.
baf2ec8 Add some feature 1.
edd3e66 initial commit
Suppose that I want to delete a commit (temporary commit) from local_branch.
How can I do it without corrupting other commits?
Which is the best way? Can I do it with this instruction:
git rebase -i