提交代码到gitee操作记录

1.配置ssh登录信任

123@LAPTOP-8C43136J MINGW64 /d/zjh/github/kafka-2.5.0-ansible-master (master)
$ git clone https://gitee.com/zoujiahua2021/kafka-2.5.0-ansible.git
Cloning into 'kafka-2.5.0-ansible'...
fatal: unable to access 'https://gitee.com/zoujiahua2021/kafka-2.5.0-ansible.git/': error setting certificate verify locations:  CAfile: D:/Program Files/Git/usr/bin/curl-ca-bundle.crt CApath: none

123@LAPTOP-8C43136J MINGW64 /d/zjh/github/kafka-2.5.0-ansible-master (master)
$ ssh-keygen.exe -t rsa -C "1234567@qq.com"

2.生成的公钥复制到gitee的ssh公钥

在这里插入图片描述

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github/kafka-2.5.0-ansible-master (master)
$ ssh-agent.exe -s
SSH_AUTH_SOCK=/tmp/ssh-bH3n1JpV0Mye/agent.730; export SSH_AUTH_SOCK;
SSH_AGENT_PID=731; export SSH_AGENT_PID;
echo Agent pid 731;

3.克隆项目到本地

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github
$  git clone git@gitee.com:zoujiahua2021/zookeeper-3.4.6-ansible.git
Cloning into 'zookeeper-3.4.6-ansible'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 9 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (9/9), 9.57 KiB | 9.57 MiB/s, done.

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github
$ tar -zxvf zookeeper-3.4.6-ansible-master-v1.tar.gz -C zookeeper-3.4.6-

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github
$ cd zookeeper-3.4.6-ansible

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github/zookeeper-3.4.6-ansible (master)

4.本地项目移到下载的项目目录下

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github/zookeeper-3.4.6-ansible (master)
$ mv zookeeper-3.4.6-ansible-master-v1/* ./

LICENSE  README.en.md  README.md  ansible.cfg  hosts  jdk.yml  roles/  stop.yml  vars/  zookeeper-3.4.6-ansible-master-v1/  zookeeper.yml

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github/zookeeper-3.4.6-ansible (master)
$ rm -rf zookeeper-3.4.6-ansible-master-v1/

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github/zookeeper-3.4.6-ansible (master)
$ ls
LICENSE  README.en.md  README.md  ansible.cfg  hosts  jdk.yml  roles/  stop.yml  vars/  zookeeper.yml

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github/zookeeper-3.4.6-ansible (master)

5.提交项目

$ git add  .
warning: in the working copy of 'LICENSE', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'ansible.cfg', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'hosts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'jdk.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/java/tasks/java.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/java/tasks/main.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/java/tasks/redhat.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/java/templates/create_dir.sh', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/java/templates/jdk_env.sh', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/java/templates/set.sh', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/stop/tasks/main.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/stop/templates/stop.sh', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/user/tasks/main.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/tasks/config_zk.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/tasks/install_zk.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/tasks/main.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/templates/log4j.properties', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/templates/setId.sh', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/templates/stop.sh', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/templates/zkEnv.sh', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/templates/zkServer.sh', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/templates/zoo.cfg', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'roles/zookeeper/templates/zookeeper_env.sh', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'stop.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'vars/jdk.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'vars/zk.yml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'zookeeper.yml', LF will be replaced by CRLF the next time Git touches it

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github/zookeeper-3.4.6-ansible (master)
$ git commit -m "zookeeper-3.4.6"
[master ef120c5] zookeeper-3.4.6
 28 files changed, 1635 insertions(+), 310 deletions(-)
 create mode 100644 ansible.cfg
 create mode 100644 hosts
 create mode 100644 jdk.yml
 create mode 100644 roles/java/tasks/java.yml
 create mode 100644 roles/java/tasks/main.yml
 create mode 100644 roles/java/tasks/redhat.yml
 create mode 100644 roles/java/templates/create_dir.sh
 create mode 100644 roles/java/templates/jdk_env.sh
 create mode 100644 roles/java/templates/set.sh
 create mode 100644 roles/stop/tasks/main.yml
 create mode 100644 roles/stop/templates/stop.sh
 create mode 100644 roles/user/tasks/main.yml
 create mode 100644 roles/zookeeper/tasks/config_zk.yml
 create mode 100644 roles/zookeeper/tasks/install_zk.yml
 create mode 100644 roles/zookeeper/tasks/main.yml
 create mode 100644 roles/zookeeper/templates/log4j.properties
 create mode 100644 roles/zookeeper/templates/setId.sh
 create mode 100644 roles/zookeeper/templates/stop.sh
 create mode 100644 roles/zookeeper/templates/zkEnv.sh
 create mode 100644 roles/zookeeper/templates/zkServer.sh
 create mode 100644 roles/zookeeper/templates/zoo.cfg
 create mode 100644 roles/zookeeper/templates/zookeeper_env.sh
 create mode 100644 stop.yml
 create mode 100644 vars/jdk.yml
 create mode 100644 vars/zk.yml
 create mode 100644 zookeeper.yml

1234@LAPTOP-8C43136J MINGW64 /d/zjh/github/zookeeper-3.4.6-ansible (master)
$ git push
Enumerating objects: 45, done.
Counting objects: 100% (45/45), done.
Delta compression using up to 8 threads
Compressing objects: 100% (38/38), done.
Writing objects: 100% (42/42), 26.03 KiB | 1.30 MiB/s, done.
Total 42 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Powered by GITEE.COM [GNK-6.4]
To gitee.com:zoujiahua2021/zookeeper-3.4.6-ansible.git
   7c6e2eb..ef120c5  master -> master

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值