Common git commands (TIPS) install git Java code sudo apt-get install git initialize git Java code git init View File changes in the current directory Java code git status tracking Modify file Java code git add file name e. g git add README for version Java code git commit-m "Remarks" Java code git commit-m-a 'Remarks information' (for files that are frequently modified, you can add the-a parameter, save Every git add operation) view git modification log Java code git log view modification details (add-p parameter) Java code git log-p install the front-end tool, beautiful view of the modified content Java code sudo apt-get install tig can be directly input to view the modified information, exit with Ctrl + C add git account Java code git co Nfig -- global user. name "your name" git config -- global user. email you@example.com view added information Java code cat ~ /. Gitconfig