3. Git use
Use steps:
① preparation
1. Initialize the identity information (they do not transform a computer, can only be done once)
2. cloning Warehouse Code (download Warehouse Code) / pull the latest (pull, update)
[first day of work : cloning, followed by one day before every start is pull]
② write code (code editing, create, delete)
③ submit local repository (staging area)
④ submit to a remote repository (the day after work)
Practical operation:
① preparatory work
initialization identity information:
$ git config --global user.name “用户名”
$ git config --global user.email “邮箱地址”
Clone Codes (download warehouse)
$ git clone HTTPS下载地址
② create t1.php, t2.php, t3.php
③ submitted to the local repository
$ git add .
④ submit to a remote repository
$ git commit -m “注释”
$ git push
Configuration files in the current local workspace file .git folder, the file name is called config.