Is it possible in git to just push 4 out of 5 commits?

I have only five commits in my local git repository. Out of five commits, I want to push 4 commits rather than pushing the last commit, is that possible?

+3


source to share


1 answer


use refspec:



git push origin HEAD^:master   

      

+5


source







All Articles