git checkout helloworld.txt
来源:互联网 发布:被删除的数据如何恢复 编辑:程序博客网 时间:2024/05/16 07:22
[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]#
[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]#
- git checkout helloworld.txt
- git checkout
- Git checkout
- git checkout
- git checkout
- git checkout
- git checkout
- git# checkout
- git checkout
- git checkout
- git checkout .
- git checkout
- git checkout
- git reset &&git checkout
- git - git checkout
- git之 git checkout
- 使用git checkout 源代码
- git checkout简介
- HDU 1431 素数回文 打表
- Installing nginx and php-fpm on Mac OSX 10.8 using ports
- java对cookie的操作
- rhel5.5下安装oracle10g报libXp.so.6错误
- 转 Library cache内部机制详解
- git checkout helloworld.txt
- 面向数据流的设计方法
- 51汇编指令
- oracle以system管理员登陆,如何查询数据库中有多少个用户
- 关于新浪微博模拟登陆的一些小研究.
- 一些假如你相信,就会毁掉你一生的谎言
- ubuntu 下 ffmpeg安装 添加h264支持,支持转码mp4文件
- 文档权限修改chmod等命令
- Objective-C语法之KVO的使用