Git: See all un pushed commits in a local branch

February 28, 2020 | No comments

Git: See all un pushed commits in a local branch

Following sections explains while using git how can we see the changes that committed but not pushed yet.
to show all commits
git cherry -v origin/remote_branch
For example i have two commits that are not pushed yet. Since modified files are already committed, git status does not show any files with differences. Running cherry -v shows the followings
$ git status
On branch Feb2020
nothing to commit, working tree clean
$ git cherry origin/master
+ 06a6c1cf3d58d1243e31dce207a0c281f2fde9c0
+ 38df6a3b511ada8b18b580eb9a031b1567bc9457
+ 5c9be2509d33537de54d0d99c22dd4aea5ec8332
$ 

No comments :

Post a Comment

Please leave your message queries or suggetions.