Simple and practical git commands

1. Download the project to go to the directory and then use jit

$ git clone +"url"

2. Project Configuration

$ composer install

3. Upload the project

$ git add .  ()
$ git commit -m "更改备注"
$ git pull   (拉取项目)
$ git push  (上传项目)

4. The pull items

可以直接$ git pull

5. Check branch

$ git branch (查看当前分支)

6. Add branch

$ git checkout dev1.0  (加入到gitdev1.0分支)

7. Check status

$ git status

Guess you like

Origin www.cnblogs.com/WD-NewDemo/p/11402956.html