You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,12 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
14
14
*[Everyday Git in twenty commands or so](#everyday-git-in-twenty-commands-or-so)
15
15
*[Show helpful guides that come with Git](#show-helpful-guides-that-come-with-git)
16
16
*[Search change by content](#search-change-by-content)
17
+
*[Show changes over time for specific file](#show-changes-over-time-for-specific-file)
17
18
*[Remove sensitive data from history, after a push](#remove-sensitive-data-from-history-after-a-push)
18
19
*[Sync with remote, overwrite local changes](#sync-with-remote-overwrite-local-changes)
19
20
*[List of all files till a commit](#list-of-all-files-till-a-commit)
20
21
*[Git reset first commit](#git-reset-first-commit)
22
+
*[Reset: preserve uncommitted local changes](#reset-preserve-uncommitted-local-changes)
21
23
*[List all the conflicted files](#list-all-the-conflicted-files)
22
24
*[List of all files changed in a commit](#list-of-all-files-changed-in-a-commit)
23
25
*[Unstaged changes since last commit](#unstaged-changes-since-last-commit)
@@ -139,6 +141,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
139
141
*[Unstaging Staged file](#unstaging-staged-file)
140
142
*[Force push to Remote Repository](#force-push-to-remote-repository)
141
143
*[Adding Remote name](#adding-remote-name)
144
+
*[List all currently configured remotes](#list-all-currently-configured-remotes)
142
145
*[Show the author, time and last revision made to each line of a given file](#show-the-author-time-and-last-revision-made-to-each-line-of-a-given-file)
143
146
*[Group commits by authors and title](#group-commits-by-authors-and-title)
144
147
*[Forced push but still ensure you don't overwrite other's work](#forced-push-but-still-ensure-you-dont-overwrite-others-work)
@@ -169,6 +172,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
169
172
*[Push a new local branch to remote repository and track](#push-a-new-local-branch-to-remote-repository-and-track)
170
173
*[Change a branch base](#change-a-branch-base)
171
174
*[Use SSH instead of HTTPs for remotes](#use-ssh-instead-of-https-for-remotes)
175
+
*[Update a submodule to the latest commit](#update-a-submodule-to-the-latest-commit)
172
176
173
177
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
174
178
<!-- @doxie.inject end toc -->
@@ -191,6 +195,11 @@ git help -g
191
195
git log -S'<a term in the source>'
192
196
```
193
197
198
+
## Show changes over time for specific file
199
+
```sh
200
+
git log -p <file_name>
201
+
```
202
+
194
203
## Remove sensitive data from history, after a push
0 commit comments