Git Learning Notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.