git使用

1、git clone -b develop https://github.com/QingMuZhang/treeDemo.git

2、cd rights-console-epfront-v1.8.0

3、git checkout -b develop_zhangjing

上传页面冲突

  1. git stash
  2. git pull
  3. git stash pop

将本地项目和远程git关联

1.在git上创建一个新repository

2、找到本地的项目目录,git bash

3、git init

4、git add .

5、git commit -m ‘’

6、在git上复制仓库地址

7、将本地仓库和远程仓库进行关联

git remote add origin https://github.com/QingMuZhang/treeDemo.git

8、将本地仓库的master和远程master进行关联

git push -u origin master

9、输入用户名和密码

输入密码会报错remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead

需要在git上创建令牌 https://blog.csdn.net/weixin_41010198/article/details/119698015