$ git config --global user.name 'user_name'
$ git config --global user.email 'user_email'
$ git config --global http.sslCAInfo /XXXX/XXX/XXX.crt
$ git config --global --list
$ git config --global http.sslVerify "false"
$ git config --global credential.helper store
$ git config --global alias.hist "log --color --graph --pretty=format:'%Cred%h%Creset - %Cgreen(%ci)%Creset %s %C(bold blue)<%an>%Creset%C(yellow)%d%Creset' --abbrev-commit"
$ git config --global alias.recover '!git clean -df && git reset HEAD --hard'
$ git config --global alias.updbr '!git checkout master && git branch -D feature/code_association_rule_mining && git pull --ff-only && git checkout feature/code_association_rule_mining'
$ git log --author='author_name' --before='yyyy-mm-dd hh:mm:ss' --after='yyyy-mm-dd hh:mm:ss' --first-parent
$ git log --follow -- 'filepath'
$ git revert 'commit-id' --no-merge
$ git diff --stat OR $ git log --stat
$ git diff 'from'..'to' -- 'filepath'
$ git fetch 'repo' 'branch'
$ git diff 'from'..'to' -- 'filepath'
$ git merge '@{u}'
$ git tag 'light-weight tag name' 'commit-ish'
$ git tag -a 'anotated tag name' -m 'tag message'
$ git push 'repo' 'tag name'
$ git branch -m ['old_br_name'] 'new_name'
$ git push 'repo' :'old_br_name'
$ git push 'repo' -u 'new_name'
$ git push -d 'repo' 'branch'
$ git remote prune origin
$ git rebase --onto 'target_commit-ish' 'start_commit-ish(exclude)' 'end_commit-ish(include)'
$ git rebase --quit
$ git remote add origin 'url'
$ git cherry -v 'certain-branch'
$ git log --merges 'commit-ish'..HEAD --ancestry-path --pretty=format:'%H %ct' | tail -1
$ git log --pretty=format:%H --merges --first-parent 'br_name'
$ git show 'commit-id' --pretty=format:%aI --numstat
$ git log -p --merges --first-parent 'br_name'
$ git log -L 'startline','endline':'filepath'
$ git log --reverse --merges 'commit-id'..HEAD
$ git diff --unified=
$ git format-patch -4 HEAD
$ git am *.patch
$ git remote rename origin old
$ git remote add origin 'repositiory-url.git'
$ git config branch.master.remote origin
$ git lfs install --skip-smudge
$ git clone ...
$ git lfs pull
$ git lfs install --force
$ git -c http.sslVerify=false clone 'repositiory-url.git'
$ git config http.sslVerify "false"
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)