$ git config --global user.name Joey
$ git config --global user.email zhaojoeyuan@163.com
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ git config -l
\core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=D:/git/Windows/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
user.name=Joey
user.email=zhaojoeyuan@163.com
push.default=simple
core.editor=vi
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
......
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ git config --get core.editor
vi
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ git config --get user.name
Joey
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ vi new.txt
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
Untracked files:
(use "git add
..." to include in what will be committed)new.txt
nothing added to commit but untracked files present (use "git add" to track)
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ git add .
warning: LF will be replaced by CRLF in new.txt.
The file will have its original line endings in your working directory.
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ git commit
[master 52d0d56] Joey : 测试为了cherry-pick的命令 哈哈哈哈哈啊哈哈哈哈哈啊哈
warning: LF will be replaced by CRLF in new.txt.
The file will have its original line endings in your working directory.
1 file changed, 1 insertion(+)
create mode 100644 new.txt
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ git log
commit 52d0d56d7a70181672cbf78149f60a50ad93add9
Author: Joey <zhaojoeyuan@163.com>
Date: Tue Apr 18 20:38:29 2017 +0800
Joey :
测试为了cherry-pick的命令
哈哈哈哈哈啊哈哈哈哈哈啊哈
commit dc67406bf27de952d792cde3f6387d12dcca7544
Author: Joey <zhaojoeyuan@163.com>
Date: Mon Apr 17 23:17:10 2017 +0800
checkout
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ git branch
joey/master
local
* master
new
next
test
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (master)
$ git checkout test
Switched to branch 'test'
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (test)
$ ls
Test.txt
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (test)
$ git log -2
commit e4b44b46e2b55e07ef0b69f440a57ab72f666826
Author: zhaoJoeyuan <zhaojoeyuan@163.com>
Date: Mon Apr 17 22:38:52 2017 +0800
Update Test.txt
commit ee244d06b0221853e1711bb453d5bcaada488747
Author: zhaoJoeyuan <zhaojoeyuan@163.com>
Date: Mon Apr 17 22:32:24 2017 +0800
Update Test.txt
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (test)
$ git cherry-pick 52d0d56d7a70181672cbf78149f60a50ad93add9
[test 81dcaa7] Joey : 测试为了cherry-pick的命令 哈哈哈哈哈啊哈哈哈哈哈啊哈
Date: Tue Apr 18 20:38:29 2017 +0800
1 file changed, 1 insertion(+)
create mode 100644 new.txt
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (test)
$ ls
new.txt Test.txt
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (test)
$ git commit --amend
[test 70e1cdb] Joey : 测试为了cherry-pick的命令 哈哈哈哈哈啊哈哈哈哈哈啊哈 修改messgae信息.
Date: Tue Apr 18 20:38:29 2017 +0800
1 file changed, 1 insertion(+)
create mode 100644 new.txt
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (test)
$ git log -2
commit 70e1cdb6b8ce366eb004d0e900e1e443089f96b2
Author: Joey <zhaojoeyuan@163.com>
Date: Tue Apr 18 20:38:29 2017 +0800
Joey :
测试为了cherry-pick的命令
哈哈哈哈哈啊哈哈哈哈哈啊哈
修改messgae信息.
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (test)
$ git commit --amend --author="zhaoyuan
" [test 083f58f] Joey : 测试为了cherry-pick的命令 哈哈哈哈哈啊哈哈哈哈哈啊哈 修改messgae信息.
Author: zhaoyuan <zy782234027@qq.com>
Date: Tue Apr 18 20:38:29 2017 +0800
1 file changed, 1 insertion(+)
create mode 100644 new.txt
Administrator@9GPBSPCCTFQXEUX MINGW64 /e/gits/RemoteForTest (test)
$ git log -2
commit 083f58fd2cce4310d041f575d9c80cb20511923a
Author: zhaoyuan <zy782234027@qq.com>
Date: Tue Apr 18 20:38:29 2017 +0800
Joey :
测试为了cherry-pick的命令
哈哈哈哈哈啊哈哈哈哈哈啊哈
修改messgae信息.