-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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
D:\LearnPython>git init Initialized empty Git repository in D:/LearnPython/.git/
D:\LearnPython>git add helloworld.py
D:\LearnPython>git commit -m "first commit"
[master (root-commit) 06456a1] first commit
1 file changed, 3 insertions(+)
create mode 100644 helloworld.py
D:\LearnPython>git branch -M master
D:\LearnPython>git remote add origin https://github.com/enlight-tech/learnpython.git
D:\LearnPython>git push -u origin master
remote: Permission to enlight-tech/learnpython.git denied to vidyasekaran.
fatal: unable to access 'https://github.com/enlight-tech/learnpython.git/': The requested URL returned error: 403
Go to Windows Credentials Manager -> Add Generic add below
Internet or network address : git:https://github.com
User name : [email protected]
Password : (Generate Token in github and add it here)
save and close
Push and check it works
D:\LearnPython>git push -u origin master
-
…or create a new repository on the command line
-
echo "# learnpython" >> README.md
-
git init
-
git add README.md
-
git commit -m "first commit"
-
git branch -M main
-
git remote add origin https://github.com/enlight-tech/learnpython.git
-
git push -u origin main
-
…or push an existing repository from the command line
-
git remote add origin https://github.com/enlight-tech/learnpython.git
-
git branch -M main
-
git push -u origin main