Mac 本地代码上传GitHub
来源:互联网 发布:mac韩服lol官网下载 编辑:程序博客网 时间:2024/06/05 05:13
运行 git Bash 客户端,输入如下代码:
$ cd ~/.ssh$ ls
这两个命令就是检查是否已经存在 id_rsa.pub 或 id_dsa.pub 文件,如果文件已经存在,那么你可以跳过步骤2,直接进入步骤3。
2、创建一个 SSH key
$ ssh-keygen -t rsa -C "your_email@example.com"(注册github时用的邮箱)
$ makdir ~/hello-world //创建一个项目hello-world
$ cd ~/hello-world //打开这个项目
$ git init //初始化
$ touch README
$ git add README //更新README文件
$ git commit -m 'first commit' //提交更新,并注释信息“first commit”
$ git remote add origin git@github.com:defnngj/hello-world.git //连接远程github项目
$ git push -u origin master //将本地项目更新到github项目上去
$ git init //初始化
$ touch README
$ git add README //更新README文件
$ git commit -m 'first commit' //提交更新,并注释信息“first commit”
$ git remote add origin git@github.com:defnngj/hello-world.git //连接远程github项目
$ git push -u origin master //将本地项目更新到github项目上去
GitHub ssh key
http://blog.csdn.net/phunxm/article/details/45083335
GitHub上传代码
http://blog.csdn.net/leikezhu1981/article/details/47664215
0 0
- Mac 本地代码上传GitHub
- gitHub上传本地代码
- github上传本地代码
- Github上传本地代码
- 本地代码上传Github
- Mac下上传本地代码仓到github流程
- mac环境下将本地代码上传至gitHub…
- 教你使用mac上传本地iOS代码到github
- MAC环境如何将本地代码上传到GitHub上
- mac如何上传本地代码到gitHub上
- Mac下将本地代码上传到GitHub上
- Github上传代码Mac
- 上传本地代码到github
- github本地如何上传代码
- 上传本地代码到github
- 本地代码上传到github
- 本地代码上传 -> Github
- 上传本地代码到GitHub
- iOS —— ARC、MRC 下dealloc 方法存在的意义
- php 日期转成数字
- 【LeetCode】119Pascal's Triangle II
- Android 常用开发工具以及 Mac 常用软件
- WPF 简单的动画
- Mac 本地代码上传GitHub
- Android 5.0新特性,共享元素及RevealAnimator实现华丽的详情页面
- tomcat的性能调优
- word to txt
- IOS-TextField知多少
- php通过递归 创建文件存储目录
- <Error>: CGContextSetFillColorWithColor
- centos上 yum 安装mysql
- Oracle物理体系总结