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

推荐订阅源

V
Vulnerabilities – Threatpost
U
Unit 42
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
F
Full Disclosure
月光博客
月光博客
Engineering at Meta
Engineering at Meta
博客园_首页
The Register - Security
The Register - Security
G
Google Developers Blog
The Cloudflare Blog
博客园 - Franky
K
Kaspersky official blog
A
Arctic Wolf
Scott Helme
Scott Helme
C
Cisco Blogs
Hugging Face - Blog
Hugging Face - Blog
C
Check Point Blog
NISL@THU
NISL@THU
AI
AI
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Vercel News
Vercel News
T
Tor Project blog
P
Privacy International News Feed
D
Docker
I
Intezer
L
LangChain Blog
P
Proofpoint News Feed
Security Latest
Security Latest
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
博客园 - 聂微东
AWS News Blog
AWS News Blog
Martin Fowler
Martin Fowler
P
Privacy & Cybersecurity Law Blog
V
V2EX
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
The Hacker News
The Hacker News
T
Tenable Blog
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog

思有云 - IOIOX - GitHub

关于 ghproxy.com 封禁相关仓库的说明 - 思有云 Github Action 部署 acme.sh 全自动批量签发多域名证书教程 - 思有云 分享优质工具 - gh-proxy 代理下载或 git clone Github 仓库 - 思有云 新手入门 Github Webhooks 完美自动化部署教程 - 思有云 GitHub Actions + 腾讯云COS + SCF云函数 + 自动刷新CDN 完美自动化部署静态网站 - 思有云 修改Hosts临时解决GitHub的raw.githubusercontent.com无法链接的问题 - 思有云 - IOIOX
macOS使用Github上传项目时忽略及删除.DS_Store文件教程 - 思有云 - IOIOX
博主: Stille · 2019-04-11 · via 思有云 - IOIOX - GitHub
  • 发布时间:
  • 9191 次浏览
  • 1 条评论
  • 660字数
  • 分类: 技术教程
  1. 首页
  2. 正文  

前言

最近又在折腾和研究Docker和GitHub,虽然不懂写代码,但靠着搜索引擎慢慢摸索,觉得很有意思,于是在Mac上安装了官方GitHub Desktop.使用过程中发现上传代码或者项目时,会把manOS的系统文件.DS_Store文件上传上去.于是在网上找到了简单解决方法.

本文为 Stille 原创文章.经实践,测试,整理发布.如需转载请联系作者获得授权,并注明转载地址.


解决方案

打开终端
输入以下命令进入你的Github仓库文件夹

macOS下GitHub文件夹默认存放在Documents下,xxxx为你的仓库名称.

cd ~/Documents/GitHub/xxxx

输入以下命令创建.gitignore文件,并忽略.DS_Store文件.

echo .DS_Store >> ./.gitignore

删除GitHub项目文件夹内已经产生的.DS_Store文件

该命令仅删除当前文件夹及子文件夹的.DS_Store文件

find . -name '*.DS_Store' -type f -delete

最后打开GitHub Desktop,提示更改项为删除.DS_Store文件,同步上传即可.


结语

继续折腾GitHub和Docker去,慢慢更新使用中的一些小技巧.请持续关注本站.


晚高峰稳定 4K 的 IPLC 机场 解锁各流媒体 支持 ChatGPT. 晚高峰稳定 4K 的 IPLC 机场 解锁各流媒体 支持 ChatGPT. RedteaGO - 最划算的大陆漫游 eSim 流量卡,原生境外 IP,注册就送 3 刀。
RedteaGO - 最划算的大陆漫游 eSim 流量卡,原生境外 IP,注册就送 3 刀。

赞赏作者

如果喜欢我的文章,觉得对你有帮助,请随意赞赏!

macOS使用Github上传项目时忽略及删除.DS_Store文件教程

 •