Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git log

git log  # show commits
git log -p  # show diff files
git log -p <path>  # show diff specified files
Comment

git log

$ git log
# git log lists the commits made in that repository in reverse chronological order
Comment

git log

# show in terminal by this command
git log --reflog
# show message just
git log --all --oneline
# use gui git by this command
gitk
# or use git desktop
https://desktop.github.com/
#and other gui-git
https://git-scm.com/downloads/guis
Comment

git log

git log #show all commits/hash #'s, messages, dates, author information
git log --graph #shows a graphical link between commits, branches, merges, etc.
git log --graph --online #Same as"git log --graph", but condenses information
Comment

git logline

$ git config --global alias.logline "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
$ git logline

this will:
-one commit per line

-show graph of commits

-abbreviated commit IDs

-dates relative to now

-show commit references (like git log --decorate)

-lots of colour

-show author of the commit
Comment

PREVIOUS NEXT
Code Example
Shell :: restart odoo service ubuntu 
Shell :: how to stash specific file in git with message 
Shell :: ssh key gen 
Shell :: generating a new ssh key 
Shell :: vagrant box remove version 
Shell :: how to see users logged in linux 
Shell :: git stash pop single file 
Shell :: how to delete evicted pod in kubernetes: 
Shell :: boot maker for ubuntu 
Shell :: Install Software GUI GNOME for Kali Linux 2022.1 
Shell :: copy files between servers 
Shell :: role ansible update apt 
Shell :: appimage 
Shell :: powershell get arguments 
Shell :: batch color escape character 
Shell :: how to remove all files in a directory matching a regex pattern shell 
Shell :: git remember login 
Shell :: postgres run query from command line 
Shell :: pm2 logs log time 
Shell :: macbook gestures stopped working 
Shell :: how to copy file in ubuntu terminal 
Shell :: force remove a hidden folder in linux 
Shell :: check if docker daemon is runing 
Shell :: git stash save 
Shell :: git delete all local branches starting with 
Shell :: nginx block post files 
Shell :: bash split array into chunks 
Shell :: remove folder from gitlab main branch repository 
Shell :: ubuntu add line to end of file 
Shell :: uninstall teams on ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =