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

I have total five commits in my local git repo. Out of five commits I want to push 4 commits and not push the last commit is it possible?

  • How to edit Git “add patch” hunks/diffs/lines during selective staging?
  • Git Commit Generation Numbers
  • How to get a list of all Subversion commit author usernames?
  • Github commit, diff does not show changes
  • How can I get/list/see all the descendants of a commit with git (or gitk)?
  • No data written: Not enough storage - Git on TFS 2015
  • Where are Git Stashes stored?
  • git tag: fatal: Failed to resolve 'HEAD' as a valid ref
  • Working with two repositories in git
  • Re-doing a reverted merge in Git
  • Multiple simuntaneous changesets with Git
  • Move Git folder containing submodules
  • One Solution collect form web for “Is it possible in git to just push 4 out of 5 commits?”

    use refspec’s:

    git push origin HEAD^:master   
    Git Baby is a git and github fan, let's start git clone.