Intro
Git is a powerful version control system that lets you track changes and collaborate with others.
I'm not covering the basics of git, just showing some functionality to intermediate users
I consider the understanding of below commands to be the prerequisite for the main part of this post, so just have a look
git status– check the state of your working treegit add <file>– stage changes for commitgit commit -m "message"– save staged changesgit push– upload local commits to the remote repositorygit pull– fetch and merge updates from the remote repositorygit checkout -b <branch>– create and switch to a new branchgit merge <branch>– merge another branch into the current onegit log– view commit history
Main Part
git diff --stat – see changes between commits or the working treege to see changes before commit
Post Categories
Software Engineering
1
Web Development
1