I have done a commit and then I remembered that there was a change on the branch, so I did a git pull. But this made a merge, so now it looks like this:
Is there a way to solve this? How to move my commit after the origin/dev
? Please be explicit in steps, because I am a beginner.
You should:
git pull -r
Also, read this post about deleting merge commits by rebasing them:
http://marketblog.envato.com/general/rebasing-merge-commits-in-git/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.