Skip to content

fix for push github authentication #23

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

Open
systemkwiat opened this issue Oct 25, 2021 · 3 comments
Open

fix for push github authentication #23

systemkwiat opened this issue Oct 25, 2021 · 3 comments

Comments

@systemkwiat
Copy link

file: dj4e_github.md

_git push -u origin main
(enter id and password for git)_

Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

@tejedajordan
Copy link

I need Help with this SAME ISSUE, I cant push a project to the hub without this same error, what is the new process? like where do I start?

@systemkwiat
Copy link
Author

@tejedajordan
The solution is in my Issue. You need to user personal access token instead.
Go to your Github account -> Settings -> developer settings -> Personal access tokens - generate new token.

copy that token and past in in authentication process instead of password

@tejedajordan
Copy link

tejedajordan commented Oct 26, 2021 via email

srcatto added a commit to srcatto/dj4e that referenced this issue Nov 28, 2021
Update for issue: csev#23

Undecided if more info is too much, "Create a PAT" is, https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

In the instructions, likely changes in branch name to main, creating a blank repo in GitHub the startup code has changed, a new line, the -M main,

git commit -m "first commit"
git branch -M main
git remote add origin 

without, as PYAW Settings defaults to (master) and GitHub Repository default branch is main

22:37 ~/django_projects (master)$ git remote add origin https://github.com/--your-account--/django_projects.git
22:40 ~/django_projects (master)$ git push -u origin main
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/srcedx/django_projects.git'

with

22:40 ~/django_projects (master)$ git branch -M main
22:41 ~/django_projects (main)$ git push -u origin main
Username for 'https://github.com':
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