Git “error: The branch 'x' is not fully merged”

前端 未结 12 2026
忘了有多久
忘了有多久 2020-12-04 04:34

Here are the commands I used from the master branch

git branch experiment
git checkout experiment

Then I made some changes to my files, commi

12条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 05:03

    to see changes that are not merged, I did this:

    git checkout experiment
    git merge --no-commit master
    
    git diff --cached
    

    Note: This shows changes in master that are not in experiment.

    Don't forget to:

    git merge --abort
    

    When you're done lookin.

提交回复
热议问题