> On 2022. Oct 18., at 11:19, PK <princek...@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 > <http://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 > <applewebdata://5DCE7F59-3BCF-433C-B5C3-7EF44F98CD29> wrote: > Hi, > I am trying to run example provided > here(https://github.com/go-git/go-git/tree/master/_examples > <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 > > <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 > <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 > <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 > <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+unsubscr...@googlegroups.com > <mailto:golang-nuts+unsubscr...@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/C4AE8166-DE9A-4544-9C90-5892D1D5E5DC%40gmail.com.