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

推荐订阅源

Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
V
Vulnerabilities – Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
Spread Privacy
Spread Privacy
P
Proofpoint News Feed
AWS News Blog
AWS News Blog
S
Securelist
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
T
Troy Hunt's Blog
SecWiki News
SecWiki News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Latest
Security Latest
C
Cyber Attacks, Cyber Crime and Cyber Security
AI
AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Stack Overflow Blog
Stack Overflow Blog
I
Intezer
I
InfoQ
Attack and Defense Labs
Attack and Defense Labs
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Commits to openclaw:main
Recent Commits to openclaw:main
T
The Exploit Database - CXSecurity.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
News | PayPal Newsroom
云风的 BLOG
云风的 BLOG
S
Secure Thoughts
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
L
LINUX DO - 最新话题
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
A
About on SuperTechFans
Hacker News - Newest:
Hacker News - Newest: "LLM"
TaoSecurity Blog
TaoSecurity Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Webroot Blog
Webroot Blog
L
LangChain Blog
MyScale Blog
MyScale Blog
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
Vercel News
Vercel News
Engineering at Meta
Engineering at Meta
C
Cybersecurity and Infrastructure Security Agency CISA
Y
Y Combinator Blog
L
Lohrmann on Cybersecurity
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog

博客园 - 天际翔龙

一个苹果证书如何多次使用——导出p12文件[多台电脑使用] Log4net系列一:Log4net搭建之文本格式输出【转】 SMMS 2016 啟用深色主題 c#代碼小集 ZenCoding[Emmet]語法簡介【轉】 vscode: Visual Studio Code 常用快捷键【轉】 C#枚举Enum[轉] Android 杂记 解决genymotion-arm-translation.zip无法拖拽安装的问题[转] c#同步調用異步(async)方法【記錄用】 DDD基本概念 server2012/win8 卸载.net framework 4.5后 无法进入系统桌面故障解决【转】 Entity Framework中AutoDetectChangesEnabled為false時更新DB方法 MSSQL日誌傳輸熱備份注意事項 c#生成唯一编号方法记录,可用数据库主键 唯一+有序 Angular 隨記 使用dumpbin命令查看dll导出函数及重定向输出到文件【轉】 UML类图与类的关系详解【转】 知識隨記
git常用命令备忘录
天际翔龙 · 2017-09-20 · via 博客园 - 天际翔龙
  • 返回未修改状态 【git checkout . --没有的提交的,都返回到原来的状态  git clean -xdf 删除文件和目录】
git checkout . && git clean -xdf 
  • 帳戶設置
git config --global user.name "UserName"
git config --global user.email "User@email.com"
  • 初始化仓库
  • 查看仓库的状态
  • 向暂存区添加文件
  • 保存仓库的历史记录【提交】
  • 查看提交日志【后面带有文件或目录时只显示指定的文件或目录日志】
  • 查看提交日志【短格式】
  • 显示文件的差异【后面带有文件或目录时只显示指定的文件或目录日志】
  • 查看更改前后的差异【工作树和暂存区差异】
  • 查看更改前后的差异【工作树和最新提交的差异】
  • 显示分支一览表【-a 时包含远程分支】
  • 创建、切换分支【创建并切换至feature-A分支】
git checkout -b feature-A
  • 创建分支【创建feature-A分支】
  • 切换分支【切换至feature-A分支】
  • 合并分支【将feature-A分支合并至当前分支,并记录合并】
git merge --no-ff feature-A
  • 图表形式查看分支
  • 回溯历史版本
  • 添加远程仓库【GitHub】
git remote add origin 仓库url
  • 推送至远程仓库【当前分支推送至指定分支,没有则创建分支】
  • 获取远程仓库
  • 获取最新远程仓库分支
  • 删除远程仓库
git push origin :分支名
或者
git push origin --delete 分支名
  • 更新远程已删除仓库

posted @ 2017-09-20 14:48  天际翔龙  阅读(455)  评论()    收藏  举报