刚接触github,遇到一个代码上传的问题。废话不多说1. 在网站注册帐号,创建工程 test 进入工程,右下角会有一个项目仓库的地址。https://github.com/braverior/test.git2.Linux下 安装githubsudo apt -get install git git-core git-doc3. 创建rsa公钥ssh-keygen -t rsa -C "your_email@youremail.com"整个过程中有一个需要填密码然后后进入~/.ssh目录 找到公钥id_rsa.pub记事本打开复制文字进入github.com中的的设置,找到pubkey选项,填入公钥。命题随便填4. 设置账户信息git config --global user.name "lukeyan"git config --global user.email xxx@gmail.com5. 测试链接:如果有you’ve successfully authenticated, but GitHub does not provide shell access 。这就表示已成链接接下来上传:git initgit add . #如果是.表示上传全部目录下的文件,可以是某个文件git commit -m "version 1.0"git remote add origin https://github.com/用户名/test.gitgit push origin master -fiptables端口映射详解制作自己的rpm包相关资讯 Github Github使用
- GitHub使用操作指南 (今 08:43)
- 以无主管企业文化自豪,GitHub最终 (09月10日)
- Github提示Key is already use (06月07日)
| - GitHub 特殊技巧和Git基本操作 (09月14日)
- GitHub:诞生于Ruby,60%的员工远 (08月09日)
- FSF的道德评估认为GitHub不合格 (04月26日)
|
本文评论 查看全部评论 (0)