I committed code in local repository 2 or more times using
git commit -m "message 1"
git commit -m "message 2"
git commit -m "message 3"
Now I have three commits with following SHA
commit-1 SHA1
commit-2 SHA2
commit-3 SHA3
But I want to push only commit-2
in remote repository using git push.
If I run git push then it will push all commits.
And I also tried following commands:
git push SHA2
but this also pushed all commits.
How to push this only commit-2
in remote repository?