P
P
Polina2020-02-17 19:50:37
git
Polina, 2020-02-17 19:50:37

Git commits only changed lines of a file, or the entire file?

Let's say I had a file already added to the git repository.
In this file, I change one line.
When I push a modified file, does git push only the changed line, or the entire file?
I would like to receive an answer with a link to the documentation.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oksana ..., 2020-02-17
@deniz1983

see here . explains how git reads and saves changes

L
Lynn "Coffee Man", 2020-02-17
@Lynn

A commit sends nothing at all
git push will call git-send-pack at some point
https://git-scm.com/docs/git-send-pack

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question