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 can I change my git timezone offset?
  • Why after copying git repository to another dir I have modified files?
  • Why is it considered good practice to describe git commits in the present tense?
  • GIT Error:- expected committer email '' but found ''
  • How can I make git commit messages divide into multiple lines?
  • What is the effect of git commit without the -a option?
  • How to measure IOPS for a command in linux?
  • HEAD~ vs HEAD^ vs HEAD@{} also known as tilde vs caret vs at sign
  • Git: How to update/checkout a single file from remote origin master?
  • Automatic prune with git fetch or pull
  • How to show commits for a specific date?
  • git project vs repository, what's the fundamental difference?
  • 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.