赞
踩
没有工具,本次直接选的这个
// 查看Git版本号
git --version
创建本地仓库文件夹,在此文件夹下打开终端,执行git init,输入之后你去你本地仓库看,就会发现了多了一个.git的隐藏仓库
//创建ssh key ssh-keygen -t rsa -C "957489000@qq.com" //邮箱输入自己的,可以随便,就是当名称使用而已 //三次回车后显示 Generating public/private rsa key pair. Enter file in which to save the key (/Users/wangwenzhuo/.ssh/id_rsa): Enter passphrase (empty for no passphrase): //此处输入密码 Enter same passphrase again: //确认密码 Your identification has been saved in /Users/wangwenzhuo/.ssh/id_rsa. Your public key has been saved in /Users/wangwenzhuo/.ssh/id_rsa.pub. //检查电脑是否已创建了公钥和私钥 cd ~/.ssh ls //结果显示已创建: id_rsa id_rsa.pub known_hosts //获取自己的公钥 cat id_rsa.pub
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。