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

推荐订阅源

The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
爱范儿
爱范儿
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
小众软件
小众软件
F
Full Disclosure
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
I
Intezer
S
SegmentFault 最新的问题
S
Schneier on Security
V
Vulnerabilities – Threatpost
T
Tenable Blog
P
Privacy & Cybersecurity Law Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Latest news
Latest news
Simon Willison's Weblog
Simon Willison's Weblog
D
DataBreaches.Net
L
LINUX DO - 热门话题
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
Stack Overflow Blog
Stack Overflow Blog
SecWiki News
SecWiki News
H
Hacker News: Front Page
aimingoo的专栏
aimingoo的专栏
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
T
Threatpost
罗磊的独立博客
L
LangChain Blog
The Last Watchdog
The Last Watchdog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
K
Kaspersky official blog
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
N
News | PayPal Newsroom
美团技术团队
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
Docker
T
The Blog of Author Tim Ferriss
N
Netflix TechBlog - Medium
博客园 - 【当耐特】
Cyberwarzone
Cyberwarzone

噜啦 - 噜啦

使用Python 在WordPress 自动发布文章 xmlrpc 404 Not Found 错误 cPanel面板 AirPods 小米8 安卓设备 音量小 终极解决方法 EHEH 免费,轻量的Linux服务器监控 SSL证书过期监控 - 噜啦 Git 最小配置 - 噜啦 Privacy Pass Cloudflare验证码通过神器 - 噜啦 easypanel 搭建typecho 开启全站https/ssl 伪静态 - 噜啦 du和ls查看文件大小不同的原因 - 噜啦 服务管理工具 systemctl - 噜啦 进程的控制与进程之间的关系 - 噜啦
创建第一个仓库并配置local信息 add and commit - 噜啦
博主: 噜啦 · 2020-07-12 · via 噜啦 - 噜啦

当前目录下创建新仓库
git init gitlearning

进入目录
cd gitlearning

配置仓库user.name user.email

git config --local user.name 'lula'
git config --local user.email 'admin@coding.lula.fun'

创建README.md
touch README.md

尝试commit
git commit -m'Add readme'

报错,因为还没有track该文件

On branch master

Initial commit

Untracked files:
    README.md

nothing added to commit but untracked files present

add
git add README.md

查看当前的状态
git status

On branch master

No commits yet

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

    new file:   README.md

重新commit
git commit -m'Add README.md'
成功

[master (root-commit) 9a4b5ae] Add README.md
 1 file changed, 112 insertions(+)
 create mode 100644 README.md

查看git日志
git log

commit 9a4b5aefbf519f1c3cc9939321cb62721d8889d8 (HEAD -> master)
Author: lula <admin@coding.lula.fun>
Date:   Sun Jul 12 10:37:26 2020 +0800

    Add README.md

赞赏作者

如果觉得我的文章对你有用,请随意赞赏