Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error push local repo to remote repo #105

Open
treisinger opened this issue Mar 16, 2018 · 5 comments
Open

Error push local repo to remote repo #105

treisinger opened this issue Mar 16, 2018 · 5 comments

Comments

@treisinger
Copy link

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

@larshp
Copy link
Owner

larshp commented Mar 17, 2018

issue reproduced,

image

note that the branch is updated in abapGitServer,
image

but the git client shows a warning

@larshp
Copy link
Owner

larshp commented Mar 17, 2018

try #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 added a commit that referenced this issue Mar 18, 2018
* add unit tests for xstream

* report status for correct ref #105
@treisinger
Copy link
Author

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.

@larshp
Copy link
Owner

larshp commented Mar 23, 2018

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

@treisinger
Copy link
Author

treisinger commented Mar 23, 2018

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants