Administrator@MS-20170301NRCW MINGW64 /d
$ mkdir learngit
Administrator@MS-20170301NRCW MINGW64 /d
$ cd learngit
Administrator@MS-20170301NRCW MINGW64 /d/learngit
$ git init
Initialized empty Git repository in D:/learngit/.git/
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git add file1.txt test1.txt
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: file1.txt
new file: test1.txt
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git commit -m "commit success"
[master (root-commit) 62e1272] commit success
2 files changed, 4 insertions(+)
create mode 100644 file1.txt
create mode 100644 test1.txt
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git status
On branch master
nothing to commit, working tree clean
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git remote
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git remote add origin git@github.com:MyGitHubHpu/python7.git
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git remote
origin
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git push -u origin master
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 301 bytes | 150.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
To github.com:MyGitHubHpu/python7.git
* [new branch] master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git clone git@github.com:MyGitHubHpu/gitskills.git
Cloning into 'gitskills'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ git clone git@github.com:MyGitHubHpu/gitskills.git
Cloning into 'gitskills'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Administrator@MS-20170301NRCW MINGW64 /d/learngit (master)
$ ssh-keygen -t rsa -C "13693916721@163.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
Enter passphrase (empt
Git实战二
最新推荐文章于 2024-01-31 08:00:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)