地里新农-请到考试中心学习规则
- 积分
- 3
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2021-6-23
- 最后登录
- 1970-1-1
|
本帖最后由 VkS 于 2023-4-12 13:17 编辑 .--
多谢两位大侠!
chatGPT 还是差一些的,不像你们两句话都在点儿上。
我试着用Git直接在terminal里面搞,貌似commit成功了。结果git push提示我类似用户名密码错误什么的,请看下面的terminal记录。
然后我从网页登陆GitHub,确定用户名密码都没错。我是落下了某一步骤么?- asig@asig-Vostro-5402:~$ cd Document
- bash: cd: Document: No such file or directory
- asig@asig-Vostro-5402:~$ ls
- Desktop Downloads Music Public Templates
- Documents google-chrome-stable_current_amd64.deb Pictures snap Videos
- asig@asig-Vostro-5402:~$ cd Documents
- asig@asig-Vostro-5402:~/Documents$ ls. 1point 3 acres
- ASiG
- asig@asig-Vostro-5402:~/Documents$ cd ASiG
- asig@asig-Vostro-5402:~/Documents/ASiG$ ls
- ASiG.cs 'Business Mode.md' ChatGPTLog.md README.md. ----
- asig@asig-Vostro-5402:~/Documents/ASiG$ git init
- Reinitialized existing Git repository in /home/asig/Documents/ASiG/.git/
- asig@asig-Vostro-5402:~/Documents/ASiG$ git status
- On branch main
- Your branch is up to date with 'origin/main'.
- . 1point 3acres
- Changes to be committed:
- (use "git restore --staged <file>..." to unstage)
- new file: ASiG.cs
. 1point 3 acres - modified: Business Mode.md
- modified: README.md
- asig@asig-Vostro-5402:~/Documents/ASiG$ git diff
- asig@asig-Vostro-5402:~/Documents/ASiG$ git remote -v
- origin https://github.com/Railway-Wei/ASiG.git (fetch)
- origin https://github.com/Railway-Wei/ASiG.git (push)
- asig@asig-Vostro-5402:~/Documents/ASiG$ git add .
- asig@asig-Vostro-5402:~/Documents/ASiG$ git commit -m "I just want to push something back to GitHub"
- [main 8073f03] I just want to push something back to GitHub. check 1point3acres for more.
- 3 files changed, 5 insertions(+), 1 deletion(-)
- create mode 100644 ASiG.cs
- asig@asig-Vostro-5402:~/Documents/ASiG$ git status
- On branch main
- Your branch is ahead of 'origin/main' by 1 commit.
- (use "git push" to publish your local commits)
- nothing to commit, working tree clean
- asig@asig-Vostro-5402:~/Documents/ASiG$ git remote -v. 1point3acres
- origin https://github.com/Railway-Wei/ASiG.git (fetch)
- origin https://github.com/Railway-Wei/ASiG.git (push)
- asig@asig-Vostro-5402:~/Documents/ASiG$ git push. 1point 3 acres
- Username for 'https://github.com': railway.wei@gmail.com. check 1point3acres for more.
- Password for 'https://railway.wei@gmail.com@github.com':
- remote: Support for password authentication was removed on August 13, 2021..google и
- remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication..
- fatal: Authentication failed for 'https://github.com/Railway-Wei/ASiG.git/'
- asig@asig-Vostro-5402:~/Documents/ASiG$ git push
- Username for 'https://github.com': Railway-Wei
- Password for 'https://Railway-Wei@github.com':
- remote: Support for password authentication was removed on August 13, 2021.
- remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.. Χ
- fatal: Authentication failed for 'https://github.com/Railway-Wei/ASiG.git/'
- asig@asig-Vostro-5402:~/Documents/ASiG$
复制代码 |
|