Search code examples
c#consoleupdatesgithub-api

Need help running GitHub commands in C# Console


This is a re-upload of Run git commands from a C# function.

I am creating an update system for my C# Console Project and would like to use git commands to pull the latest version and update itself. How would I do that?


Solution

  • This answer should help you to get a basic understanding.

    So now you have to run two sets of commands.

    Push:

    add -A
    commit -m "explanation_of_changes"
    push origin branch_name
    

    Pull:

    pull origin branch_name