[email protected] MINGW64 ~/Desktop/Git/-Git (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
GitLearning.docx
nothing added to commit but untracked files present (use "git add" to track)
[email protected] MINGW64 ~/Desktop/Git/-Git (master)
$ git add GitLearning.docx
[email protected] MINGW64 ~/Desktop/Git/-Git (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: GitLearning.docx
[email protected] MINGW64 ~/Desktop/Git/-Git (master)
$ git commit -m 'vision 1.0'
[master cf5a4e1] vision 1.0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 GitLearning.docx
[email protected] MINGW64 ~/Desktop/Git/-Git (master)
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
[email protected] MINGW64 ~/Desktop/Git/-Git (master)
$ git push
Logon failed, use ctrl+c to cancel basic credential prompt.
Username for 'https://github.com': yezhaodan
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 133.91 KiB | 11.16 MiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/yezhaodan/-Git.git
aa5e68c..cf5a4e1 master -> master
如果
git push
出現
The requested URL returned error:403 Forbidden while accessing