0

Having project at bitbucket how can I git pull a project with state before last 2 commits and 1 merge?

Thanks in advance!

Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
  • 1
    Do you mean "How to *clone* a project at some arbitrary point in the past"? – Romain Valeri Jun 24 '22 at 14:02
  • Are you trying to just checkout the files in your sandbox to examine them? Then `git checkout ` will do. Or are you trying to reset your local branch to the state you're describing? Or are you trying to update the remote to state you're describing? – joanis Jun 24 '22 at 14:06
  • By the way, `git pull` is simply `git fetch` followed by `git merge` (by default) or `git rebase` (if you changed your configuration). I recommend avoiding `git pull` and using `git fetch` instead: that way, you can avoid creating unintended merges. After fetching, look and the commit graph, and either merge or rebase if necessary and if you know that's what you want to do. – joanis Jun 24 '22 at 14:08
  • @Romain Valeri, yes – Petro Gromovo Jun 24 '22 at 14:21
  • Would [this](https://stackoverflow.com/questions/791959/download-a-specific-tag-with-git) help? – Romain Valeri Jun 24 '22 at 14:32

0 Answers0