git链接远程仓库已经新建本地仓库
来源:互联网 发布:如何开淘宝实体店 编辑:程序博客网 时间:2024/05/16 08:26
tj@TJ-PC MINGW64 ~
$ ssh-keygen -t rsa -C "XXXX.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/tj/.ssh/id_rsa):
Created directory '/c/Users/tj/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Passphrases do not match. Try again.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/tj/.ssh/id_rsa.
Your public key has been saved in /c/Users/tj/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The key's randomart image is:
+---[RSA 2048]----+
| . o..|
| . = +.|
| = Bo.|
| . ..#==+|
| S o @+X+=|
| .o=.+oB.|
| . +o++. |
| .+ o E|
| .o.. . |
+----[SHA256]-----+
tj@TJ-PC MINGW64 ~
$ mkdir my-test
tj@TJ-PC MINGW64 ~
$ cd my-test
tj@TJ-PC MINGW64 ~/my-test
$ git init
Initialized empty Git repository in C:/Users/tj/my-test/.git/
tj@TJ-PC MINGW64 ~/my-test
$ git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
test_tutu3.py
nothing added to commit but untracked files present (use "git add" to track)
tj@TJ-PC MINGW64 ~/my-test
$ git add test_tutu3.py
tj@TJ-PC MINGW64 ~/my-test
$
tj@TJ-PC MINGW64 ~/my-test
$ git config --global user.name "XXXX"
tj@TJ-PC MINGW64 ~/my-test
$ git config --global user.email "XXXXXXX"
tj@TJ-PC MINGW64 ~/my-test
$ git commit -m "first commit"
[master (root-commit) 2f68998] first commit
1 file changed, 44 insertions(+)
create mode 100644 test_tutu3.py
tj@TJ-PC MINGW64 ~/my-test
$ git remote add origin git@git.XXXXX.XX:XXX/my-test.git
tj@TJ-PC MINGW64 ~/my-test
$ git push -u origin master
The authenticity of host 'git.XXXXX.XX,XXX.XX.XX.XX' ' can't be established.
RSA key fingerprint is SHA256:akoFll1bzp7PDYeCInSwCxBIIJIFlrf2FnJszSvFt/Y.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'git.XXXXX.XX,XXX.XX.XX.XX' (RSA) to the list of known hosts.
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 747 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@git.XXXXXXXX:XXXX/my-test.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
阅读全文
0 0
- git链接远程仓库已经新建本地仓库
- Git本地/远程仓库
- git -- 链接远程仓库
- Git 将本地新建的分支提交到远程仓库
- git 删除本地追踪远程仓库但远程仓库已经不存在的分支
- git学习(本地仓库关联远程仓库)
- Git本地仓库和github远程仓库
- git同步本地仓库和远程仓库
- git之本地仓库关联远程仓库
- git本地仓库关联到远程仓库
- Git建立本地远程仓库
- git 更改远程仓库链接
- github新建本地仓库,远程仓库基本用法
- GitHub 新建本地仓库并提交到远程仓库
- git 新建本地仓库,到提交
- 本地git上传至远程git仓库
- 基于本地文件或者本地Git仓库创建远程Git仓库
- 本地Git仓库同步到Bitbucket 远程Git仓库
- POJ 1979 Red and Black
- WinForm Chart控件使用记录(由于制作饼装,柱状,折线图)
- bzoj 1426(期望dp)(公式推导)
- 免装版tomcat注册成windows系统服务方法
- 如何对HashMap按键值排序
- git链接远程仓库已经新建本地仓库
- 求当前数组中,最大值减最小值等于sum的数组个数
- bzoj4719: [Noip2016]天天爱跑步
- 接口练习
- 单页web应用(SPA)的简单介绍
- Smart3D软件基本操作步骤
- 阿里云双11活动撸福利攻略云服务器篇 必买爆款
- Nginx源码剖析--HTTP模块配置信息的merge
- python3的format