I checked out a branch, made changes, added changes and committed. I did not push the changes.
When I do a git status it tells me
Switched to branch 'develop'
Your branch is ahead of 'origin/develop' by 2 commits.
(use "git push" to publish your local commits)
Is there a way one can know what changes (files/code) are waiting to be pushed ?
git diff origin/develop will show the difference from your current branch to origin/develop.
git diff origin/develop develop will show the difference between origin/develop and develop branches when you are on any branch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With