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

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

噜啦 - Git

Git 最小配置 - 噜啦
创建第一个仓库并配置local信息 add and commit - 噜啦
博主: 噜啦 · 2020-07-12 · via 噜啦 - Git

当前目录下创建新仓库
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

赞赏作者

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