github安装过程及初次上传遇到的问题
2014-03-19 09:13
260 查看
一:github安装过程
1.登陆github,注册及创建一个仓库。
2.在本地下载安装客户端msysgit。 网址:https://code.google.com/p/msysgit/downloads/list。
3.配置git.
设置sshkey: $ssh-keygen -C 'email address' -t rsa,一直next,最后在.ssh文件夹中找到id.rsa.pub文件。复制里面的密钥到github项目—>accout settings,找到SSH Keys,new a ssh key. 复制本地 id.rsa.pub文件的密钥到new key的的Key中。添加完成后,可在git shell中验证,$ ssh -T git@github.com,会提示success.
4. 输入git config --global user.name "注册的name"
5.输入git config --global user.email "注册的email"
6.在本地创建一个仓库,选择磁盘,创建文件夹test(文件夹名与网站上的仓库名相同),
7.进入该文件夹,初始化仓库: git init
8.将要上传的代码的文件夹(如:code)放到test里。用git add .可将code文件夹的所有内容添加到仓库上传队列中。另用git add 文件名,可将某个文件内容添加到仓库中。
9.输入git commit -m 'test commit'
10.输入git remote add origin https://github.com/用户名/仓库名.git
11.输入git push origin master。如果提交报错:error: failed to push some refs to 'https://github.com/xuzhezhaozhao/Practice.git' 。用参数-f(force-push),输入git push -f origin master即可上传成功。
参见:http://www.woiweb.net/github-gitshell-tutorial.html
http://blog.csdn.net/xzz_hust/article/details/8916668 http://note.youdao.com/share/?id=f320b42c886a907ad03b7349ae1ab26c&type=note
1.登陆github,注册及创建一个仓库。
2.在本地下载安装客户端msysgit。 网址:https://code.google.com/p/msysgit/downloads/list。
3.配置git.
设置sshkey: $ssh-keygen -C 'email address' -t rsa,一直next,最后在.ssh文件夹中找到id.rsa.pub文件。复制里面的密钥到github项目—>accout settings,找到SSH Keys,new a ssh key. 复制本地 id.rsa.pub文件的密钥到new key的的Key中。添加完成后,可在git shell中验证,$ ssh -T git@github.com,会提示success.
4. 输入git config --global user.name "注册的name"
5.输入git config --global user.email "注册的email"
6.在本地创建一个仓库,选择磁盘,创建文件夹test(文件夹名与网站上的仓库名相同),
7.进入该文件夹,初始化仓库: git init
8.将要上传的代码的文件夹(如:code)放到test里。用git add .可将code文件夹的所有内容添加到仓库上传队列中。另用git add 文件名,可将某个文件内容添加到仓库中。
9.输入git commit -m 'test commit'
10.输入git remote add origin https://github.com/用户名/仓库名.git
11.输入git push origin master。如果提交报错:error: failed to push some refs to 'https://github.com/xuzhezhaozhao/Practice.git' 。用参数-f(force-push),输入git push -f origin master即可上传成功。
参见:http://www.woiweb.net/github-gitshell-tutorial.html
http://blog.csdn.net/xzz_hust/article/details/8916668 http://note.youdao.com/share/?id=f320b42c886a907ad03b7349ae1ab26c&type=note
相关文章推荐
- Android初次安装过程中遇到的问题
- Apache,PHP,MySql,WordPress初次安装的过程以及遇到的问题
- 我在MySQL免安装版使用过程中遇到的问题记录
- 安装ffmpeg过程中可能会遇到的问题详解
- Linux安装与配置samb服务器的过程以及遇到的问题
- linux安装和配置 mysql、redis 过程中遇到的问题记录(转)
- RHEL6安装调试过程中遇到的问题集
- Ansible安装过程中遇到过的问题
- openstack安装部署过程中遇到的问题
- 安装oracle10g并导入dmp文件的过程(遇到的问题总结记录)
- SQL Server 2008 安装过程中遇到“性能计数器注册表配置单元一致性”检查失败 问题的解决方法【已验证 】
- VMware Harbor 使用过程中遇到的问题 1 -- 无法上传docker镜像
- 升级php7+安装laravel过程中遇到的问题汇总
- 记从安装centos系统在到使用mono3.2部署MVC过程遇到的问题
- Ubuntu14.04安装mysql及过程中遇到的一点小问题
- hadoop安装和使用过程中遇到的问题
- 解决 Mac App Store 下载应用程序、安装应用程序过程中遇到的问题。
- VSS2005安装和配置过程中遇到的问题
- MySQL 5.1安装和配置过程中遇到的问题