Show logs with file differences(we can add number of the commit which we want to see like -1,-2): git log -p Show logs with addition and deletion in a particular commit: git log –stat Show commits in one line: git log –pretty=oneline Show commit in short form: git log –pretty=short Show log from last two…
Category: Git
Git
Git Commands
git –version Set user name and email git config –list ( for list all configuration settings) git config –global user.name “abhinav” git config –global user.email “abc@yopmail.com” Remove git added file: git reset <filename> Remove git commit file: local changes will not remove. git reset HEAD^ git reset HEAD ~ 1 Remove git commit with changes:…