开发常用指令

git 相关

回退提交内容

git reset ---hard id

git push origin 分支 ---force

git rebase 分支

删除远程分支

git push origin ---delete 分支

删除本地分支

git branch -D 分支

更改用户名/邮箱/密码

git config --global user.name/user.email/user.password 内容

撤回本地merge

git merge --abort

git reset --soft HEAD~1

合并某次提交

git cherry-pick id

重命名提交内容

git commit --amend

全局配置修改

git config --global alias.st status

git config --global alias.pl pull

git config --global alias.ps push

git config --global alias.ci commit

git config --global alias.lg log

git config --global alias.co checkout

git config --global alias.br branch

git config --global alias.mg merge

Linux 删除文件夹命令

rm -rf 目录名称

-r 向下递归,不管有多少级目录,一并删除。

-f 直接强行删除,没有任何提示。

杀死进程

sudo lsof -i :端口号

kill -9 <PID>

谷歌浏览器禁用跨域

open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/huangting73/MyChromeDevUserData

相关推荐
Elasticsearch11 小时前
Kibana 中的 SNMP 拓扑数据:从采集到 Canvas
elasticsearch
叫我少年12 小时前
Windows 中安装 git
git
大大大大晴天17 小时前
Hudi技术内幕:RecordPayload到RecordMerger
大数据
SelectDB1 天前
秒级弹性、最高降本 70%:SelectDB Serverless 如何重塑云数仓资源效率
大数据·后端·云原生
WhoAmI1 天前
MapReduce框架原理解析一:InputFormat
大数据·hadoop
WhoAmI1 天前
MapReduce框架原理解析三:OutputFormat
大数据·hadoop
WhoAmI1 天前
MapReduce框架原理解析二:Shuffle
大数据·hadoop
大大大大晴天2 天前
Hudi技术内幕:Key Generation原理与实践
大数据
Elasticsearch2 天前
3个信号、2个环境变量、0个采集器:使用 Python 和 Elastic 的托管 OTLP 端点实现 OpenTelemetry
elasticsearch