nm666

Git

Git删除分支/恢复分支

Git删除分支/恢复分支 :https://www.cnblogs.com/utank/p/7880441.html

重点:Git会自行负责分支的管理,所以当我们删除一个分支时,Git只是删除了指向相关提交的指针,但该提交对象依然会留在版本库中。

Git修改本地用户

Git修改本地用户,参考https://www.jianshu.com/p/3ad0512d1306
//查看用户名
git config user.name
//查看邮箱地址
git config user.email
//修改用户名,xxx 处填写你的用户名
git config --global user.name "xxx"
//修改邮箱地址,xxx 处填写你的邮箱地址
git config --global user.email "xxx"

Git创建忽略文件

一些命令:
//查看受git管理的文件
git status
//创建 .gitignore文件命令
touch .gitignore
idea中常用忽略文件

创建好.gitignore文件后,在里面添加如下内容:

.idea
target
*.iml

GitHub

GitHub中fork的使用:https://www.cnblogs.com/patchouli/p/6511251.html

分类:

技术点:

相关文章:

  • 2021-05-27
  • 2022-01-11
  • 2022-02-09
  • 2022-01-07
  • 2021-06-05
  • 2021-12-14
  • 2021-12-10
猜你喜欢
  • 2022-03-04
  • 2021-10-18
  • 2021-09-06
  • 2021-12-20
  • 2021-11-27
  • 2022-02-09
  • 2021-11-15
相关资源
相似解决方案