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

推荐订阅源

雷峰网
雷峰网
V
Visual Studio Blog
NISL@THU
NISL@THU
S
Security Affairs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
The Register - Security
The Register - Security
博客园_首页
月光博客
月光博客
aimingoo的专栏
aimingoo的专栏
I
InfoQ
Spread Privacy
Spread Privacy
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿
T
Tor Project blog
有赞技术团队
有赞技术团队
美团技术团队
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Google Online Security Blog
Google Online Security Blog
Vercel News
Vercel News
Webroot Blog
Webroot Blog
S
Security @ Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
DataBreaches.Net
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
博客园 - 司徒正美
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
小众软件
小众软件
www.infosecurity-magazine.com
www.infosecurity-magazine.com
N
News and Events Feed by Topic
Forbes - Security
Forbes - Security
T
Troy Hunt's Blog
C
Check Point Blog
D
Docker
Latest news
Latest news
Martin Fowler
Martin Fowler
T
Tenable Blog

博客园 - 此夏_唯美

新概念英语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 强制推送代码至远程仓库
慎用:回退后一点痕迹都没有,仿佛就没有提交过代码,一般都要备份下代码,或者新建立一个分支用于备用。