请问如何用git获取某段时间内的代码
漂亮男人
漂亮男人 2017-05-02 09:38:08
0
3
920

目前公司发布的流程是拿到最新更新的代码, 然后通过sftp传到生产上, 之前用svn, 可以通过图形界面直接把对应的多个版本提交的文件更新下来, 但是到了git就不知道如何操作了,

请问是否有类似的方法解决, 谢谢

漂亮男人
漂亮男人

reply all(3)
PHPzhong

Let’s take a look at simple git operations first. Recommend http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/

http://git.oschina.net/progit/

漂亮男人
 git whatchanged --since "2 weeks ago" 

if you only want to move a set of commits from another branch to your current branch, refer to git cherry-pick

洪涛

What you get is the latest code. Then use git log --stat --since "2 months ago" to check the commitid (version number), and then git reset --hard commitid The code will return to the commitid version, but it is best to pull out a new one. This operation

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template