1. Introduction to git
Git is a code management tool that implements version control and code merging.
git: distributed management, each client can perform version management
svn: centralized management, client and server, can only be attached to the server for version management
Installation:
win version, install all the way to the next step
2. What is the difference between git, gitlab, gitee, and github?
git: software, version management software
github: the world's largest open source code repository
- Open source code, hosted on github, others can see, download and use
- Code hosting platform (hosting open source code, hosting non-open source code)
- git remote repository
gitee: code cloud, the domestic version of github, the Chinese use a lot
- Small companies, spend money to use gitee's private warehouse
gitlab: the company's own code hosting platform
3. Git workflow
Workspace temporary storage area version library
Workspace modified content (delete, add, modify)---->submit to temporary storage area---->submit to version library
Fourth, git basic commands
1. Create a workspace and manipulate files in it
git init # 初始化仓库,以后这个文件夹就被git管理了,生成一个隐藏