博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git checkout helloworld.txt
阅读量:2298 次
发布时间:2019-05-09

本文共 1205 字,大约阅读时间需要 4 分钟。

[root@localhost helloworld-git]# echo "helloworld" >helloworld.txt
[root@localhost helloworld-git]# git add helloworld.txt
[root@localhost helloworld-git]# git commit -m 'helloworld-master'
[master (root-commit) fddae22] helloworld-master
 Committer: root <root@localhost.localdomain>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
    git config --global user.name "Your Name"
    git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
    git commit --amend --reset-author
 1 file changed, 1 insertion(+)
 create mode 100644 helloworld.txt
[root@localhost helloworld-git]# git log
commit fddae22359221092ade97421800f308f0d8e3886
Author: root <root@localhost.localdomain>
Date:   Thu Mar 21 16:50:51 2013 +0800
    helloworld-master
[root@localhost helloworld-git]# echo "world hello">helloworld.txt
[root@localhost helloworld-git]# cat helloworld.txt
world hello
[root@localhost helloworld-git]# git checkout helloworld.txt
[root@localhost helloworld-git]# cat helloworld.txt
helloworld
[root@localhost helloworld-git]# 

转载地址:http://ockib.baihongyu.com/

你可能感兴趣的文章
HTTP请求方式中get和post的区别
查看>>
Django的环境配置
查看>>
Git命令之git init
查看>>
数据标准化,中心化,归一化
查看>>
laravel 上传文件出现无后缀或.bin后缀
查看>>
Windows下搭建本地HTTPS测试环境
查看>>
Phpstorm 配置 cmder
查看>>
升级phpStudy自带的MySql版本 5.5->5.7
查看>>
Navicat 创建ER图
查看>>
Navicat 模型 报:名“”已被采用。请选择一个不同的名解决方法
查看>>
编程常用软件记录
查看>>
Docker 设备空间不足
查看>>
搭建ssm环境
查看>>
深入理解平衡二叉树,B树,B+树
查看>>
使用LinkedList实现LRU
查看>>
SpringIoC加载流程
查看>>
java对象的创建过程
查看>>
深入理解CAS底层实现
查看>>
Find Minimum in Rotated Sorted Array
查看>>
Search for a Range
查看>>