仍在更新中

# git

# 修改上次的提交信息

$ git commit --amend
[master 6a325f8] 提交链表的文章
 Date: Wed Sep 11 23:31:29 2024 +0800
 1 file changed, 7 insertions(+)
 create mode 100644 "\351\223\276\350\241\250.md"

# git 仓库初始化

git init
初始化文件夹为一个仓库

$ git init
Initialized empty Git repository in C:/Users/yayah/myrepository/.git

# 以图形化方式查看日志

$ git log --graph

# 添加远程仓库

$ git remote add origin git@github.com:Yayahaokeai/CppAlgorithm.git

# 推送至远程仓库

$ git push -u origin master
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 16 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 525 bytes | 525.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:Yayahaokeai/CppAlgorithm.git
   5266516..b5fbdaf  master -> master
branch 'master' set up to track 'origin/master'.

# 查看 git 本地的用户信息

查看名字
git config user.name
查看邮箱
git config user.email
查看密码
git config user.password

修改
git config --global user.name "你的新名字"

# github

# 项目搜索

限定项目名称,名字中有 “example”

in:name example

限定 readme 中的关键词,readme 中有 “example”

in:readme example 

限定描述中的关键词,描述中有 “example”

in:description example 

限定 star 和 fork 的数量(star>1000 fork>1000)

stars:>1000  forks:>1000 

限定项目最近更新的日期,2019 年 9 月 1 日后有更新的

pushed:>2019-09-01 

限定编写的语言,用 CPP 编写的项目

language:cpp