RRTutors
  • Python
  • Android
  • Compose
  • C
  • ReactNative
  • Laravel
  • Ruby
  • Kotlin
  • Java
  • Free Projects
  • Bootstrap5

Git - Version Control
  • Introduction
  • Install git
  • Git Basics
  • Git Ignore File
  • Commit Files
  • Push To Remote
  • Pull from Remote
  • Find Difference
  • Git Branch
  • Git View Log/History
  • Git Revert Changes

Get a list of all git commits, including the 'lost' ons


How to get a history of commits?

#show last 2 commits
git log -2
/br>



How to see last change?

# show diff of last changes
git log -p -2 --color

 



git help log

 

Read More Programming Examples

  • What is the difference between Git and SVN?
  • List out Git repository hosting services
  • What is a commit message?
  • What is a repository in Git?
  • How can you create a repository in Git?
  • What is mean by 'git config' ?
  • What is 'head' in git and how many heads can be created in a repository?
  • What is a 'conflict' in git?
  • How to resolve 'conflicts' in git?
  • How to create branch in git?
  • How to delete branch in git?
  • What is the difference between git pull and git fetch?
  • What is the use of ‘git log’?

About Us

  • Privacy Policy
  • Quiz
  • Jobs

Tutorials

  • Compose
  • Flutter
  • Projects
  • Blogs

Popular Frameworks

  • Laravel
  • React JS
  • React Native

Connect

  • Contact us
  • Hire Me
  • Write for us
  • Sitemap

Address

Hyderabad

Telangana,India

500050

Contact Us

+918309025984

rrtutor.me@gmail.com

© Copyright 2024. All Rights Reserved.