![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
AnnyYoung
这个作者很懒,什么都没留下…
展开
-
fatal: The upstream branch of your current branch does not match the name of your current branch.
git error; fatal: The upstream branch of your current branch does not matchthe name of your current branch.原创 2022-06-21 12:24:53 · 514 阅读 · 0 评论 -
git ignore:忽略不想上传的文件或目录
1、将不想上传的文件写在.gitignore中配置规则如下:# # 此为注释 – 将被 Git 忽略*.bak # 忽略所有 .bak 结尾的文件/DB # 仅仅忽略项目根目录下的 DB 文件,不包括 /其他路径/DBdatabase/ # 忽略 database/ 目录下的所有文件file/*.txt # 会忽略 file目录下所有带.txt后缀的文件, 但不包括 file/file2/*.txt!main. # 但 main.txt 除外(排原创 2022-03-03 14:22:56 · 1180 阅读 · 1 评论 -
创建 SSH key
创建 SSH key1、检查是否已存在ssh keyls -al ~/.ssh2、生成新的ssh keyssh-keygen -t rsa -C "myemail@example.com"3、输入passphrase(可跳过)设置passphrase后,进行版本控制时,每次与GitHub通信都会要求输入passphrase,以避免某些“失误”4、将新生成的key添加到ssh-agent中# start the ssh-agent in the backgroundeval "$(ssh原创 2022-03-03 12:19:12 · 2344 阅读 · 0 评论