Is it possible in git to push commits one by one instead of all of them at once?

Viewed 1984

I'm using a really unreliable connection and while I try to stage commits so none of them is over 20mb and/or to push them once they reach a size like that, sometimes it's not possible (a few of the assets can be big - I know it's not the best idea to use git for assets too) and there are 90% of chances my connection will fail before everything is sent.

Is it possible to push commits one by one, or can you suggest any other tips that could be useful for this case?

2 Answers

Just to clarify the other answer:

git push <remote name> <commit SHA>:<remote branch name>

Example:

git push origin c01c4fa28a0c864c2d09f8fb43a80c46dce9c7c6:master
Related