abapGitServer icon indicating copy to clipboard operation
abapGitServer copied to clipboard

Error push local repo to remote repo

Open treisinger opened this issue 7 years ago • 5 comments

I have created a local Git repository by cloning online repository from abapGitServer. In local repository I created a new branch customer and checkout to newly created branch customer. I updated files for branch customer and make a commit. I push to abapGitServer with command

'git push --set-upstream origin customer'

but did receive an error.

image

treisinger avatar Mar 16 '18 08:03 treisinger

issue reproduced,

image

note that the branch is updated in abapGitServer, image

but the git client shows a warning

larshp avatar Mar 17 '18 11:03 larshp

try https://github.com/larshp/abapGitServer/pull/108 I'm not sure if this fixes the set-upstream, but now it is possible to push to a branch without the warning

image

larshp avatar Mar 17 '18 12:03 larshp

I can confirm that the warning is gone.

image

But the error is still there when using the upstream option, to create branch in remote repo, when it was created first in local repo.

image

This means I have to create branch always in abapGit first, but this is something I can live with. You can close the issue if you like.

treisinger avatar Mar 19 '18 07:03 treisinger

hi, can you help adding a description of the commands before git push upstream, eg. starting with git clone

larshp avatar Mar 23 '18 09:03 larshp

  1. git clone to create local repo based on remote repo image

  2. git branch NewCust to create new branch in local repo image image

  3. git checkout NewCust to work with new branch (deleted some files) image

  4. git commit -a to commit changes to local repo image

  5. git push does not work, as newly created branch did not exist in remote repo image

  6. git push --set-upstream origin NewCust to create new branch in remote repo gives error message image

treisinger avatar Mar 23 '18 12:03 treisinger