Dated: March 2021
$ git log
commit b...9 (HEAD -> main, origin/main, origin/HEAD)
Author: unknown <abc@xyz.com>
Date: Sun Nov 1 14:00:25 2020 +0530
cmt
commit 4...1
Author: unknown <abc@xyz.com>
Date: Thu Oct 29 22:57:00 2020 +0530
cmt
commit 4...2
Author: abc <abc@xyz.com>
Date: Wed Oct 28 19:15:29 2020 +0530
Add files via upload
commit 7...e
Author: unknown <abc@xyz.com>
Date: Tue Oct 27 22:29:20 2020 +0530
cmt
commit b...f
Author: abc <abc@xyz.com>
Date: Tue Oct 27 22:26:23 2020 +0530
Initial commit
On the "github.com", you can view your commits at a URL for your profile and repository such as one given below:
https://github.com/${myUsername}/${myRepoName}/commits/main
Command "git log" also shows some differing output for local and pushed commits.
$ git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: Books (Feb)/Introductory statistics Part1 Descriptive Statistics.tgz
no changes added to commit (use "git add" and/or "git commit -a")
See these in 'git log' output below:
(HEAD -> main) OR (origin/main, origin/HEAD) OR (HEAD -> main, origin/main, origin/HEAD)
$ git log
commit d...2 (HEAD -> main)
Author: ashish <abc@xyz.com>
Date: Mon Mar 15 10:19:42 2021 +0530
cmt 1019
commit c...c (origin/main, origin/HEAD)
Author: ashish <abc@xyz.com>
Date: Mon Mar 15 10:16:59 2021 +0530
cmt 1016
commit 3...b
Author: ashish <abc@xyz.com>
Date: Mon Mar 15 10:15:51 2021 +0530
cmt 1015
When there are no local commits:
$ git log
commit c5...c (HEAD -> main, origin/main, origin/HEAD)
Author: ashish <abc@xyz.com>
Date: Mon Mar 15 10:16:59 2021 +0530
cmt 1016
And the various options / flags and customizations to "git log" output
Dated: August 2026
Current Directory: ~/Downloads/gh/private/some_repo (main)
$ git log -3
commit 659fbe040e73948ca82948446c0acb9bb75732c2 (HEAD -> main)
Author: Ashish Jain
Date: Thu Aug 13 22:55:34 2026 +0530
Test Run
commit 8cd01551f32a910bef995e06af95ef1c4141385d
Author: Ashish Jain
Date: Tue Aug 11 11:35:03 2026 +0530
Update 1H.ipynb
commit 776e18cd452f2522a5f6c4a2b6b25537adc04f12
Author: Ashish Jain
Date: Tue Aug 11 11:33:11 2026 +0530
Adapted to Windows
$ git log --since=2026-08-10 -3
commit 659fbe040e73948ca82948446c0acb9bb75732c2 (HEAD -> main)
Author: Ashish Jain
Date: Thu Aug 13 22:55:34 2026 +0530
Test Run
commit 8cd01551f32a910bef995e06af95ef1c4141385d
Author: Ashish Jain
Date: Tue Aug 11 11:35:03 2026 +0530
Update 1H.ipynb
commit 776e18cd452f2522a5f6c4a2b6b25537adc04f12
Author: Ashish Jain
Date: Tue Aug 11 11:33:11 2026 +0530
Adapted to Windows
$ git log --until="3 days ago" -3
commit 8cd01551f32a910bef995e06af95ef1c4141385d
Author: Ashish Jain
Date: Tue Aug 11 11:35:03 2026 +0530
Update 1H.ipynb
commit 776e18cd452f2522a5f6c4a2b6b25537adc04f12
Author: Ashish Jain
Date: Tue Aug 11 11:33:11 2026 +0530
Adapted to Windows
commit 326fb6c61a97d8bd108a8374e2a3c5a4cb484a54
Author: Ashish Jain
Date: Tue Aug 11 10:36:19 2026 +0530
Updates: using .env file and rotating db files
$ git log --author="Ashish" -3
commit 659fbe040e73948ca82948446c0acb9bb75732c2 (HEAD -> main)
Author: Ashish Jain
Date: Thu Aug 13 22:55:34 2026 +0530
Test Run
commit 8cd01551f32a910bef995e06af95ef1c4141385d
Author: Ashish Jain
Date: Tue Aug 11 11:35:03 2026 +0530
Update 1H.ipynb
commit 776e18cd452f2522a5f6c4a2b6b25537adc04f12
Author: Ashish Jain
Date: Tue Aug 11 11:33:11 2026 +0530
Adapted to Windows
$ git log --grep="Initial"
commit 3c521ad6de447f183569289c1c4c29e155d93013
Author: Ashish Jain
Date: Wed Jul 9 20:23:38 2025 +0530
Initial commit
$ git log -3 "experiment 1"
commit 659fbe040e73948ca82948446c0acb9bb75732c2 (HEAD -> main)
Author: Ashish Jain
Date: Thu Aug 13 22:55:34 2026 +0530
Test Run
commit 8cd01551f32a910bef995e06af95ef1c4141385d
Author: Ashish Jain
Date: Tue Aug 11 11:35:03 2026 +0530
Update 1H.ipynb
commit 776e18cd452f2522a5f6c4a2b6b25537adc04f12
Author: Ashish Jain
Date: Tue Aug 11 11:33:11 2026 +0530
Adapted to Windows
$ git log 776e18cd452f2522a5f6c4a2b6b25537adc04f12..HEAD
# EXCUSIVE OF: 776e18cd452f2522a5f6c4a2b6b25537adc04f12
# UP TILL: HEAD
commit 659fbe040e73948ca82948446c0acb9bb75732c2 (HEAD -> main)
Author: Ashish Jain
Date: Thu Aug 13 22:55:34 2026 +0530
Test Run
commit 8cd01551f32a910bef995e06af95ef1c4141385d
Author: Ashish Jain
Date: Tue Aug 11 11:35:03 2026 +0530
Update 1H.ipynb
~/Downloads/gh/private/s8_code (main)
$ git log -3 --stat
commit e939e43ce2610cbed4fbc360aab06d802ab6e0a2 (HEAD -> main, origin/main, origin/HEAD)
Author: Ashish Jain
Date: Mon Aug 3 20:59:23 2026 +0530
#
extract_audio_mp3_from_mp4_files.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
commit 50fa539ee4d2a1dd68136c5ab53a8bdba7326ed9
Author: Ashish Jain
Date: Fri Jul 31 18:10:38 2026 +0530
#
..._report_2026-05.js => script_to_scrape_flocareer_report_2026-07-15.js} | 0
..._report_2026-07.js => script_to_scrape_flocareer_report_2026-07-31.js} | 0
2 files changed, 0 insertions(+), 0 deletions(-)
commit 82e32d8345b55dd928ef972a01d914afcf49527d
Author: Ashish Jain
Date: Fri Jul 31 18:01:37 2026 +0530
#
...> script_to_scrape_flocareer_report_2026-05.js} | 0
.../script_to_scrape_flocareer_report_2026-07.js | 66 ++++++++++++++++++++++
2 files changed, 66 insertions(+)
$ git log --oneline
f1101ca (HEAD -> main, origin/main, origin/HEAD) #
5c441a0 #
e943b23 #
62041de #
fe780f6 #
f5d1da8 #
6b84fca #
d660cc1 #
037a0ff Initial commit
~/Downloads/gh/private/s8_code (main)
$ git log --graph --all --oneline --decorate
* e939e43 (HEAD -> main, origin/main, origin/HEAD) #
* 50fa539 #
* 82e32d8 #
* 3aea992 #
* 122cac9 #
* 73ade1a #
* ee2202d #
* dabbdc2 #
* dda7d36 Merge branch 'main' of https://github.com/ashishjain1547/s8_code 20260606
|\
| * 9ebe92c exec script
* | f5119be #
|/
* 9124bcd #
* 055ef4d #
* 7e16d7a #
* 7632142 #
* dbf3f4c #
* 75c6987 #
* 6de4e94 #
* 568b07e #
* 94e41ea #
* 8f24d4b #
* 31939b1 #
* f9280b8 #
* 187d20c #
* 550e0ce #
* dec014b #
* 0c5a175 #
* 78d2dce #
* 449632f #
* 1625d59 #
* 5ef5382 Initial commit
Tags: GitHub,
Title: GitHub Commits and Command 'git log'
Pages
- Index of Lessons in Technology
- Index of Book Summaries
- Index of Book Lists And Downloads
- Index For Job Interviews Preparation
- Index of "Algorithms: Design and Analysis"
- Python Course (Index)
- Data Analytics Course (Index)
- Index of Machine Learning
- Postings Index
- Index of BITS WILP Exam Papers and Content
- Lessons in Investing
- Index of Math Lessons
- Index of Management Lessons
- Book Requests
- Index of English Lessons
- Index of Medicines
- Index of Quizzes (Educational)
Sunday, March 14, 2021
GitHub Commits and Command 'git log'
Labels:
GitHub
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment