$ 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 Dated: March 2021
Saturday, March 13, 2021
GitHub Commits and Command 'git log'
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment