GIT:&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;CONFIG&NBSP;--GLOBAL&NBSP;COLOR.UI&NBSP;TRUE&NBSP: Let the code output have color init : Create an empty repository add filename: Add files to Staging area commit filename -m "description": Submit changes to Repository diff [head~n]: Comparison between workspace and staging area [repository] rm FileName: Remove the file from the repository checkout -- <file>: Recover files from Staging area , 1.reset HEAD <file>: emptying staging area 2.checkout <file>: Update files from repository second, roll back according to commit log 1.git log 2.git reset -- 5193f4c9d1973dbac02c7b926b9fb15c34eb579f 3.git checkout <1.txt> Example: Local establishment Management GITHUP remote warehouse 1.forkItem 2: Cloning a project to a local warehouse # git clone https://github.com/390892467/zabbix# git remote - V3. Establishing a remote warehouse based on the GITHUP project management item "Copy to clipboard" zabbix# git remote add zabbix [ Email protected]:390892467/zabbix.git# git remote -v4.add-->commit ... 5. When submitted to the remote repository # git push -u zabbix master :master branch, the-u parameter is added, Git will not only push the local master branch content to the remote new Master branch, but also the local master branch and the Remote Master Branch Association, in the future push or pull to simplify the command. (Git push zabbix master) because the remote library is empty, we first push
Git Learning notes