Git Product home page Git Product logo

Comments (7)

mhart avatar mhart commented on June 23, 2024

The problem is you're setting the origin using ssh:

git remote set-url origin [email protected]:${config.username}/${config.rep}.git

Just remove that line

from git-lambda-layer.

zhengjian2016 avatar zhengjian2016 commented on June 23, 2024

Hi mhart,
Thanks for your quickly response!
I tried it, but not work like below
fatal: could not read Username for 'https://github.com': No such file or directory

from git-lambda-layer.

zhengjian2016 avatar zhengjian2016 commented on June 23, 2024

Hi mhart,
Thanks for your quickly response!
I tried it, but not work like below
fatal: could not read Username for 'https://github.com': No such file or directory

When change to below

git push -u [email protected]:${config.username}/${config.rep}.git main`, execOpt)

I got another error:

Could not create directory '/home/sbx_user1051/.ssh'.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.

from git-lambda-layer.

mhart avatar mhart commented on June 23, 2024

Again, you're trying to push using an SSH address – you should be using the HTTP address that you cloned the repo with

from git-lambda-layer.

mhart avatar mhart commented on June 23, 2024

See here for how to use an access token: https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token

This isn't an issue with this layer – you would have this issue no matter where you're trying to clone or push from, so I'm going to close this

from git-lambda-layer.

mhart avatar mhart commented on June 23, 2024

And it's easier to include the token when you clone – then you don't need to enter it again. https://github.blog/2012-09-21-easier-builds-and-deployments-using-git-over-https-and-oauth/#using-oauth-with-git

from git-lambda-layer.

zhengjian2016 avatar zhengjian2016 commented on June 23, 2024

And it's easier to include the token when you clone – then you don't need to enter it again. https://github.blog/2012-09-21-easier-builds-and-deployments-using-git-over-https-and-oauth/#using-oauth-with-git

Thank you very much!

from git-lambda-layer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.