Do you know how git works? You need a remote url for the repository to push to.
> On 2022. Oct 18., at 12:45, PK wrote:
>
> Thank you, I tried to setup by this:
>
> if err_psh = repo.Push(&git.PushOptions{
>
>RemoteName: "origin",
>
>}); err != nil {
>
>log.Fatal(err_psh)
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,
> On 2022. Oct 18., at 11:19, PK 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
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
Thank you, lets say I have cloned a different rep and locally committed a
file to that repo's default branch, now wat to push that. So I should run
*./push url_of_that_repo, *but it is not working.
On Thu, Oct 13, 2022 at 1:00 PM go je wrote:
> if you mean os.Args[1], you might want to build it
if you mean os.Args[1], you might want to build it first using "go build"
and you might run "./push https://github.com/go-git/go-git";.
if you don't build the executable, the default args might be
`[]string{"go", "run", "_examples/push/main.go", "
https://github.com/go-git/go-git"}` where "os.Args[
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