25
2017
08

git 更新某个目录或文件

更新文件

$ git fetch

remote: Counting objects: 8, done.

remote: Compressing objects: 100% (3/3), done.

remote: Total 8 (delta 3), reused 8 (delta 3), pack-reused 0

Unpacking objects: 100% (8/8), done.

From github.com:fffy2366/checkout

   cd1768d..2408ca5  master     -> origin/master

$ git checkout -m 2408ca5 1.php 2.php


更新目录

$ git fetch

remote: Counting objects: 8, done.

remote: Compressing objects: 100% (3/3), done.

remote: Total 8 (delta 3), reused 8 (delta 3), pack-reused 0

Unpacking objects: 100% (8/8), done.

From github.com:fffy2366/checkout

   cd1768d..2408ca5  master     -> origin/master

$ git checkout -m 2408ca5 test1



总结

git fetch

git checkout -m 版本号 文件/文件夹



« 上一篇 下一篇 »

评论列表:

1.奕奕星空  2018-01-31 20:20:27 回复该评论
在此评论

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。