提交代码到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 "[email protected]"

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

提交代码到gitee操作记录_第1张图片

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 [email protected]: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

你可能感兴趣的:(gitee,git,github)