Saturday, June 23, 2018

github cloning a repository from a specific commit

  1. clone a repository as usual ie 
    1. git clone repository url
    2. user name and password if it is private
  2. git reset --hard a0f64dcd987669aa15d59a39a51f583b3cqd05k2
  3. in the above command the value after hard flag is the SHA of commit at that particular instant of repository
  4. import as maven project in sts

No comments:

Post a Comment