React入门

239 阅读1分钟

React入门

www.bilibili.com/video/BV1hE…

完整学习笔记: React第一篇 npm、yarn介绍

React第二篇 React语法

React第三篇 单页应用开发

React第四篇 路由&Hooks

React第五篇 综合应用(登录+列表)

在VSCode里配置 GIT www.cnblogs.com/tangsujuan/…

1、安装GIT

2、在VSCODE中配置GIT (settings)

3、打开文件夹, 添加到工作区。

4、创建新的终端, git 看看安装正常了吧

5、在 scr目录下 git init

6、 git config --global user.email "49148979@qq.com"

git config --global user.name "redrainer"

git commit -m "first commit"

7、在 github里建好 repository, 复制code

8、 git remote add origin github.com/redrainer/d…

9、git pull origin master 失败 ,提示:fatal: refusing to merge unrelated histories

其实这个问题是因为 两个 根本不相干的 git 库, 一个是本地库, 一个是远端库, 然后本地要去推送到远端, 远端觉得这个本地库跟自己不相干, 所以告知无法合并 使用这个强制的方法:
git pull origin master --allow-unrelated-histories

10、git push --set-upstream origin master

github上分支的合并

www.cnblogs.com/leilei0327/…