Thank you, I tried to setup by this:

if err_psh = repo.Push(&git.PushOptions{

       RemoteName: "origin",

   }); err != nil {

       log.Fatal(err_psh)

   }

Then also the error is same.

This is fine right  
*./push/main https://github.com/ravi-kp/graphProperties.git*
On Tuesday, October 18, 2022 at 4:06:19 PM UTC+5:30 skarl...@gmail.com 
wrote:

> On 2022. Oct 18., at 11:19, PK <princ...@gmail.com> wrote:
>
> no, Do we need to set-up something. If yes can you please let me know?
>
>
> Yep. Well, you are trying to push something to somewhere, right? So you 
> need a remote set up which is usually origin. So just set up a remote and 
> then you can push.
> Of course if you have files then first you need to add those and then 
> create a commit.
>
>
> On Tuesday, October 18, 2022 at 10:28:27 AM UTC+5:30 skarl...@gmail.com 
> wrote:
>
>> Hello.
>>
>> Did you set up any remotes for the folder that you are trying to push?
>>
>> On Monday, 17 October 2022 at 13:16:12 UTC+2 princ...@gmail.com wrote:
>>
>>> Hi,
>>> I am trying to run example provided here(
>>> https://github.com/go-git/go-git/tree/master/_examples)
>>>
>>> 1) firstly I run the clone example by cloning a repo(
>>> https://github.com/go-git/go-git/blob/master/_examples/clone/auth/basic/access_token/main.go).
>>>  
>>> (it was successful)
>>>
>>> 2) Then I run the commit example by creating a file.(
>>> https://github.com/go-git/go-git/blob/master/_examples/commit/main.go) 
>>> it was successful.
>>>
>>> 3) Now I want to push that file to git repo. but I am not able to 
>>> understand what argument i should give along with the go executable file.(
>>> https://github.com/go-git/go-git/blob/master/_examples/push/main.go)
>>> I tried by executing the following commands
>>>   
>>> *./push/main github_repo_url*
>>> but it says repository does not exist.
>>>
>>>
>>>
>>>
>>> Can anyone please help me this.
>>> Thank you.
>>>
>>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/golang-nuts/iXTfzw2Nbk0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> golang-nuts...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/75be3583-2d96-42cc-8931-f97ac5cf1c93n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/golang-nuts/75be3583-2d96-42cc-8931-f97ac5cf1c93n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f843bd9a-c19d-4b06-b1fd-01871d995bdbn%40googlegroups.com.

Reply via email to