12 添加提交以及查看状态操作
状态 操作 查看 以及 添加 12 提交
2023-09-14 09:06:15 时间
git status
提示:
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track)
vim goo.txt
git status
提示:
on branch master
no commits yet
untracked file:
(use "git add <file>..." to include in what will be committed)
good.txt
nothing added to commit but untracked files present(use "git add" to track)
git add good.txt
提示:
warning:LF will be replaced by CRLF in good.txt.
The file wile have its original line endings in your working directory
git status
提示:
on branch master
no commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: good.txt
git commit good.txt
提示:
warning: LF will be replaced by CRLF in good.txt.
The file will have its original linne endings in your working diewctory.
hint: Waiting for your editor to close the file...
自动进入了vim编辑器
My firest commit.new file good.txt
提示:
Please enter the commit message for your chanses. Lines starting
wite '#' will be ignored, and an empty message aborts the commit.
On branch master
Initial commit
Changes to be committed:
new file: good.txt
:set nu
#显示行号
i
#进入插入模式
:wq
#保存退出
#[master (root-commit) 744e2e4] My first commit.new file good.txt
#1 file changed, 3 insertions(+)
#create mode 100644 good.txt
Cat good.txt
内容:
aaaaaaa
bbbbbbb
ccccccc
git status
#On branch mastrer
#nothing to commit,, working tree clean
相关文章
- [SVN(ubuntu)] svn 文件状态标记含义
- Java中线程的操作状态
- Http 状态码对照表
- 用Semisynchronous Replication半同步,mk-table-checksum数据同步一致性检查,监控主从同步运行状态的脚本等方式加强SQL性能和数据审核
- 微信小程序----全局状态管理 (便于全局埋点等操作)
- Linux系统调优详解(五)——磁盘IO状态查看命令
- reactjs redux集中式状态管理最简入门案例
- reactjs全局状态管理:redux介绍
- C#获得系统打开的端口和状态
- SAP S/4HANA生产订单状态含义
- iOS UIButton Highlighted是指点击还没有松开的状态
- Algorithm:C++语言实现之动态规划算法相关(矩阵连乘状态转移方程、字符串的交替连接、分析格网棋盘的特点、最短路线问题、生产计划问题、动态规划解下列非线性规划)
- 〖Python 数据库开发实战 - Python与Redis交互篇⑮〗- 综合案例 - 新闻管理系统 - 更新所编辑新闻状态(根据输入内容进行保存操作)
- 【Android 电量优化】电量优化 ( 充电状态获取 | 主动获取充电状态 | 广播接受者监听充电状态 | 被动获取充电状态 | 注册空广播接受者获取历史广播 )
- 前端MVC Vue2学习总结(八)——Vue Router路由、Vuex状态管理、Element-UI
- 基于containerd搭建的K8S集群calico与coredns组件一直处于pending状态
- Steam云状态无法同步怎么办?
- 抽屉之Tornado实战(9)--装饰器实现用户登录状态验证
- IDEA操作git commit后(push项目失败:Access token is expired),撤销commit,恢复到提交前的状态
- 动态系统建模-状态空间方程