git easy to use notes

1. Initialize git

Execute in the project directory: git init

Check status: git status

2. Submit the code

Add to buffer: git add .

Commit buffer: git commit -m "description"

View log: git log

3. Switch branches

The default branch is the master branch

View all branches: git branch

Create a new branch and switch: git checkout -b develop where develop is the new branch name, custom


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325894667&siteId=291194637