Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Tuesday, 13 December 2016

Git Notes

GIT STATES:
Working Directory <==> Staging <==> Repository (.git folder) <==> Remote
COMMANDS
#git init .
#git status
#git add . (or file names)
#git log
#git show
#git ls-files
#git commit -am “Commit comments go here” –> Combine express commit and add files to staging age
#git commit -m “Commit comments go here”
#git config –global user.email “”
#git config –global user.name “”
#git config –global color.ui auto –> show color
#git config –global alias.hist “log –oneline –graph –decorate –all”

Monday, 19 January 2015

git diff showing a weird output

Source: http://www.jpichon.net/blog/2013/05/git-diff-showing-weird-output/ Either of these commands things works well: $ git --no-pager diff # No paging $ git diff --color | less -R # With paging #export LESS='-M -R'