Closed IanMercer closed 8 years ago
@IanMercer thanks for contributing :+1:
GitAliases.Checkout.cs(63,46): error CS0618: Warning as Error: `LibGit2Sharp.Repository.Checkout(string, LibGit2Sharp.CheckoutOptions)' is obsolete: `This method is deprecated. Please use LibGit2Sharp.Commands.Checkout()'
Fixed the warning message. Not sure how to proceed with the test:
Git-Push
to model this on.What am I missing?
Does it work if you clone a local repo to a new local path, change something and push that?
No, tried that, gets the error message "Error: Local push doesn't (yet) support pushing to non-bare repos". So then I tried creating a third, bare repo and pushing to that; but without a command to add a remote that's not possible either.
I see, could you rebase into 1 commit and I'll do a final review before merging.
OK, will do. BTW see also: https://help.github.com/articles/about-pull-request-merge-squashing/
I left three commits because two are really not about this feature. Your choice.
This PR adds two aliases for pushing with a refspec which is needed in order to tag a remote.
Usage example: GitTag("./", "v1.0.0"); GitPushRef("./", gitUsername, gitPassword, "origin", "v1.0.0");
[Fixes: https://github.com/WCOMAB/Cake_Git/issues/9]