Git使用笔记
2016-01-22 00:17
363 查看
win7安装git客户端
使用git bash。在gitcafe上新建一个项目
1.创建一个新项目
拥有者:answernotfount项目名称:testproject
项目中文名称:测试项目
项目描述:这是一个测试项目
项目主页(选填):
……
![](http://images2015.cnblogs.com/blog/848827/201601/848827-20160122001622828-1331461244.png)
2.在电脑上安装和设置Git
全局设置git config --global user.name 'answernotfound'
git config --global user.email 'answernotfound@answernotfound.com'
接下来:
在本地创建新的Git仓库
mkdir testproject cd testproject git init touch README.md git add README.md git commit -m 'first commit' git remote add origin 'git@gitcafe.com:answernotfound/testproject.git' git push -u origin master
或者提交在本地已有Git仓库
cd existing_git_repo git remote add origin 'git@gitcafe.com:answernotfound/testproject.git' git push -u origin master
![](http://images2015.cnblogs.com/blog/848827/201601/848827-20160122001643109-194285923.png)
生成密钥
生成一对密钥is_rsa和id_rsa.pub并将id_rsa.pub中的内容添加到公钥管理中。
相关文章推荐
- LeetCode 01 Two Sum swift
- Flask Web平台搭建
- 构造函数(Constructor)析构函数(Destructor)怎么用?
- python之haproxy配置文件操作(第三天)
- 数据结构及算法——链式表操作集(C语言)
- 安装和使用TmodJs
- 【Android】程序的安装、卸载和更新详解
- Spring Boot 使用Java代码创建Bean并注册到Spring中
- 1.22 视图切换部分
- spring框架学习--依赖注入
- 2016/1/21 练习 arraylist 1,添加 add() 2,遍历集合
- Chrome扩展插件整理合集
- Maven初级学习(三)常用命令
- 输出类名,方法名以及行数等log信息
- 高精度加法——杭电1002
- Ace向你推荐一些实用的干货库~开发安卓的好帮手
- @Index用法——javax.persistence.Index
- Viewpager+Fragment嵌套Viewpager+Fragment空白页问题
- Oracle异机恢复处理
- 个性定制你的 Git 命令行提示符