Want to check if all changes in your new branch is merged to main branch before you delete the new branch.
git log feature1 ^master
The above command displays all commits which are present in feature1 and not present in master.
Note 1: You can also try “git branch -d feature1”. If the new branch is not totally merged, git won’t delete the new branch.
Note 2: You can also try “git branch –contains feature1”, but I’m not sure how that works. I guess I’m happy with git log for now.
To read more about this, checkout http://stackoverflow.com/questions/1710894/using-git-show-all-commits-that-are-in-one-branch-but-not-the-others