I committed the code in the 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 the following SHA
commit-1 SHA1 commit-2 SHA2 commit-3 SHA3
But I want to push only commit-2 in the remote repository using git push.
If I run git push, then it will push all the commits.
And I also tried the following commands:
git push SHA2
but it also pushed all the fixations.
How to push only this commit-2 in a remote repository?
source share