Thursday, May 13, 2021

GIT Basics - History

 history


git help log


git status

Untracked files:

.DB_Store

this is an OS file. 

DS_Store is a file that stores custom attributes of its containing folder, such as the position of icons or the choice of a background image.


git log

this gives the commit history in reverse chronological

item contains

commit a23232 .... -> SHA1 identifier

Author: user lastname <user@gmail.com>

Date: Tue Nov 4..

Renaming level 1 file -> commit message

git log --oneline --graph --decorate

* a245ed message1

* a423ef commit mesag 2

* a423fe com3

* af3232 com4


you can get with range

git log a245ed...a423fe

git log --since="3 days ago" --> commmit hapens in the last 3 days

specific history of an individual file

ls -> see the files we have

git log -- hip.txt --> {dash} {dash} {space} {filename}

file  we renamed

git log --follow -- lv1/lv2/l2.txt


git show ae2324 --> commit identifier




No comments:

Post a Comment