search

Home  >  Q&A  >  body text

How to use git to get the code within a certain period of time?

The current company release process is to get the latest updated code, and then transfer it to production through sftp. Previously, using svn, you can directly update the files submitted by multiple versions through the graphical interface, but with git it is not possible. Now you know how to do it,

Please tell me if there is a similar solution, thank you

漂亮男人漂亮男人2806 days ago948

reply all(3)I'll reply

  • PHPz

    PHPz2017-05-02 09:40:08

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

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

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-02 09:40:08

     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

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:40:08

    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

    reply
    0
  • Cancelreply