Github上新建一个repository
来源:互联网 发布:公安情报数据库 编辑:程序博客网 时间:2024/05/17 06:05
1. 按照 https://help.github.com/articles/create-a-repo 这篇东西上面去做,即新建一个repo。
保存即可。
添加一个新文件
那么此时应该可以在github上看到新建到new.txt了
使用ssh方式连接git的话,就先在本地利用ssh-keygen生成一个sshkey,过程中到所有输出直接回车就好
2. 生成的key默认放到~/.ssh/ 这个目录下面的
打开其中到的 id_rsa.pub,将文件中的所有内容复制到你到github帐号的profile的 sshkey下,即新建一个即可。
3. github默认的ssh端口是443,而不是公开到22,所有要配置一下,配置文件位置 ~/.ssh/config,添加以下代码
Host github.comUser YourEmailPort 443Hostname ssh.github.com
保存即可。
4. 在本地目录下,新建一个文件,如你的repository叫 QWE,那么
mkdir QWEcd QWEgit initgit remote add origin git@github.com:YOURNAME/QWE.gitgit pull origin master
添加一个新文件
touch new.txtgit add .git commit -m 'new a text file'git push origin master
那么此时应该可以在github上看到新建到new.txt了
- Github上新建一个repository
- github windows 新建repository
- 在github上创建一个repository
- 在github上删除一个库repository
- github学习 之 如何在github上删除一个repository
- GitHub删除一个repository
- GitHub新建自己的git repository
- github 上新建仓库
- 在github上删除repository
- 从github删除一个repository
- Github Transfer Repository (在 Github上转移 Repository)
- 在github上新建项目
- 首次部署github上的repository
- 在github上部署第二个repository
- 怎么删除github上的repository(仓库)
- github上删除自己的repository
- 如何删除github上的项目(repository)
- 介绍GitHub新建一个Repo
- java数据库连接(二)
- Memcached的LRU算法
- 新手配置win8+opencv2.4.6+vs2012 x32环境,运行第一个程序:读取YUV格式视频
- hdu 1072 Nightmare
- 通过 U 盘安装 Windows Server 2008
- Github上新建一个repository
- 动态能量控制(for NS2)
- 临界区与互斥时间
- 从新的activity取得返回值
- 如何使用git回退部分修改
- 在SharePoint 2010中创建联系人Web数据库网站
- Single Number--找出数组中唯一的一个只出现一次的元素
- Project中如何正确导入第三方jar包
- Linux el6安装MySQL-5.6