Friday, December 25, 2015

Pull Older Version from Git

  1. Clone the current repository: $ git clone
  2. Go to the cloned directory: $ cd
  3. Find the sha1 of the commit to pull. For stash, click on the commit and look at the address bar. It will be the last part of the url. For example, the sha1 for http://mystash.arwan.com/repos/arwanproj/commits/0b004fdb420838ca04c15b25ad2e0b66a5693963 will be 0b004fdb420838ca04c15b25ad2e0b66a5693963 
  4. Fetch the version based on the sha1 number found: $ git fetch origin
  5. Checkout: $ git checkout FETCH_HEAD

No comments: