简体   繁体   中英

Git pull after commit

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM