Posts

Showing posts from July, 2022

Git commands

  diff -u FILE1 FILE2 show the different between files in unified detail format (Only in Linux) diff -u FILE1 FILE2 > NEWFILE.diff new file will have the different between File1 and File2 patch FILE1 < FILE2.diff patch the diff file to the File1 git config --global user.name "NAME" git congig --global user.email "EMAIL" git config -l git init git clone URL git add FILENAME Staging the file git add * Staging all file git commit -m MESSAGE Commiting the message git commit -a -m MESSAGE Both staging and commiting only for non new file git status give status git log Show all log for all commit git log -p Show with patch git show COMMITID Show log detail of given commitid git log --stat Show log details with some file changes git diff Show diff of