FAQ Get,update GIT project sources: Difference between revisions

Jump to navigation Jump to search
Line 161: Line 161:
* To get total number of added/deleted lines:
* To get total number of added/deleted lines:
<source lang="bash">
<source lang="bash">
git log --numstat --pretty="%H" id_found_at_previous_step..HEAD | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'
git log --ancestry-path --numstat --pretty="%H" id_found_at_previous_step..HEAD | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'
</source>
</source>


More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].

Navigation menu