惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Stack Overflow Blog
Stack Overflow Blog
L
LINUX DO - 最新话题
Google Online Security Blog
Google Online Security Blog
Schneier on Security
Schneier on Security
Spread Privacy
Spread Privacy
www.infosecurity-magazine.com
www.infosecurity-magazine.com
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
S
Schneier on Security
B
Blog
The Register - Security
The Register - Security
SecWiki News
SecWiki News
Hacker News: Ask HN
Hacker News: Ask HN
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security Affairs
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
T
Tenable Blog
P
Proofpoint News Feed
Apple Machine Learning Research
Apple Machine Learning Research
D
DataBreaches.Net
S
Secure Thoughts
Security Latest
Security Latest
H
Heimdal Security Blog
The Hacker News
The Hacker News
O
OpenAI News
AWS News Blog
AWS News Blog
量子位
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
腾讯CDC
U
Unit 42
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hugging Face - Blog
Hugging Face - Blog
The Last Watchdog
The Last Watchdog
Recorded Future
Recorded Future
V2EX - 技术
V2EX - 技术
爱范儿
爱范儿
F
Full Disclosure

博客园 - 此夏_唯美

新概念英语3单词表 git回滚代码 element动态表单验证一 vue+element+Cascader 级联选择器任意一级选项,去掉单选框radio vue+wangEditor编辑器,上传图片请求后台接口 vue3+vant4+vuex4入门案例 vue3+vant3封装省市区组件 前端工具vscode将英文设置中文简单方便 vue3打包后一片空白控制台报错 vue实现自定义字体库 element-ui跨行 Element-ui树形控件el-tree鼠标移入显示隐藏效果超简单 vue表格拖拽使用Sortable插件库 Vue+Element+Table表格动态跨列文章 vue框架文字滚动插件 vue项目浏览器ioc小图标 vue搭建项目iview+axios+less vue移动端在线签名 Vue中的input输入框无法输入强制渲染
git常用命令大全
此夏_唯美 · 2025-01-09 · via 博客园 - 此夏_唯美

git基本命令:

git init   //初始化仓库

git clone url   // url 为仓库地址

git status   //查看当前哪些文件被修改

git log   //查看提交的历史纪录

git add .  //添加当前目录的所有文件至缓冲区

git commit -m "备注" //提交代码到本地仓库

git push  master   //master 为本地分支名   将本地仓库的代码推送至远程仓库

git pull //拉取当前分支的最新代码

git分支管理:

当前分支: master
git banrch // 查看当前分支名
git checkout dev //切换dev分支
git merge dev //把dev分支为合并当前master分支

git checkout -b master-test //基于当前master分支再建立一个子分支(本地)
git push --set-upstream origin master-test//将本地新分支推送至远程仓库

git -D master//删除本地分支
git push origin --delete master//删除远程仓库的分支

git缓存命令

git stash//本地代码缓存
git stash list //查看缓存列表 git stash pop //提取最新一次缓存
git stash pop stash@{0} //提取某一次缓存
git stash drop [stash_id] //删除一个存储的进度
git stash clear //清除所有的存储进度

git回退命令

git reset 0b429b094574d3feba9d2734b18d0a0c45138843   //回退至版本号为0b429b094574d3feba9d2734b18d0a0c45138843
git push -f 强制推送代码至远程仓库
慎用:回退后一点痕迹都没有,仿佛就没有提交过代码,一般都要备份下代码,或者新建立一个分支用于备用。