1、git init
2、git add .
3、git commit -m "update"
4、git branch
5、git push -u origin "main"
6、git log // 查看暂存区状态
7、git reset --soft db0c1b87342e8680041164b7917cd6fbd0440027^ //移除指定id的暂存^结尾
// 将远程的所有分支同步到本地
// 远程仓库拉取最新的分支和更新
git fetch --all
// 列出本地和远程所有分支
git branch -a
//新创建本地分支与远程text分支合并
git checkout -b text origin/text
//删除分支
git branch -D text