Git push only one file
问题 We have a public repo where everybody pushes. We sometimes want to pull&push a single file without pulling the whole remote and pushing the whole merged local. I know a push must be a fast-forward, can we just fast-forward a single file? Is this possible? If not, why (by design?)? 回答1: First, you're misusing Git terminology. A ref or reference is simply a name, such as refs/heads/master (the full name of the branch-name master ) or refs/tags/v1.2 (the full name of the tag v1.2 ). Next: git