git 基础知识

来源:互联网 发布:下载倒影软件 编辑:程序博客网 时间:2024/05/16 19:51

一 如何获取帮助

git help  <verb>git <verb> --help

For example:

git config --help git help config

二 配置Git

git config --global user.name "John Doe"git config --global user.email johndoe@example.com

三 生成SSH

ssh-keygen -t rsa -C “your email"

将会生成两个文件 id_rsa和id_rsa.pub,将 id_rsa.pub 公钥添加到github

xclip -selection c  id_rsa.pub

测试是否可以登录

ssh git@github

三 克隆项目

git clone git@github.com:username/gitproj.git


0 0
原创粉丝点击