hopefully someone call help. First off, I am pretty new to git, so forgive me if I make some mistakes in explaining my question.
I would like to pull the source code as it exists up to a specific commit using the library using libgit2sharp. So if there is a history of
- Commit
- Commit
- Commit
- Commit
- Commit
- Commit
- Commit
- Commit
- Commit
- Commit
I would like to be able to pull the source code for 5, or any other number in that list. None of the source will be tagged so I have to use the commits for the pull. Hopefully someone can help.
I have looked at https://github.com/libgit2/libgit2sharp/wiki/git-pull but it does not appear to let me pass in a sha or commit id.
Edited my question to be clear I am using the library.
git pull
is just agit fetch
followed by agit merge
on the given tracked branch. You're dealing with commits here and I assume you've already got the commits locally so justgit merge sha-1
. – Tarsusgit checkout
using a lot of small bricks. – Marni