git shelving to remote repository

I would like to know if it’s possible to use git with the following workflow:

go on like this, until the feature is completely finished

then I would like to finally commit it, like if it were a single commit…

I’m talking about shelving, but saving the partial commits to the origin repository

is it possible (or recommend) to work like this with git???

  • Clone of Git repository excluding subdirectory
  • How do I push changes to a git repo with conflicting history?
  • why config folder is not pushed?
  • Git checkout does not throw away my changes
  • git fatal: SHA1 COLLISION FOUND
  • Why is Teamcity not able to pull down git submodule
  • One Solution collect form web for “git shelving to remote repository”

    Sure, commit your changes to some named branch, and push that branch to the remote.

    When you want to commit as a single commit, you can use git merge --squash.

    Git Baby is a git and github fan, let's start git clone.