使用github出现的问题
2016-03-31 15:39
239 查看
使用github出现的问题
*** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'pengbingxiang@localhost.(none)') localhost:photoCarousel pengbingxiang$ git config --global user.email "184114105@qq.com"
出现这个问题应该是本地库没有创建或者说是内容没有导入造成。
1方法;首次创建项目时勾选git2打开终端,把该项目地址输入进去 cd 文件地址(可以通过直接托转文件夹来搞定)
3 ls -a查看目录下的文件。看是否有带.git的文件目录
4如果有,ls -l -a 应该能发现带.git的文件。
5 git init
6 git add .
7 git commit -m “Initial commit’
8 终端会报错让你说如身份,就如图中run 下面的内容一样。
9 git config user.email “这个是邮箱”
10 git config user.name “你的名字”
11 git add
12 git commit -m ‘Initial commit’然后就会刷的一下在终端导入一大堆东西。
13 恭喜你,把xcode重启就OK
另外终端输入: 输入命令:git –version。查看当前git版本。
相关文章推荐
- RPC failed; result=22, HTTP code = 411
- 查看github pages文档的方式
- 使用BAE的基于Web.py的简单博客程序
- git更新已經刪除的文件
- 提取Git每次提交后Commit的文件
- GIT迁移服务器
- 分布式版本管理git入门指南使用资料汇总及文章推荐
- git终极指南:在实际开发中的应用
- 两分钟学会如何在github托管代码
- Git远程操作详解
- 25个 Git 进阶技巧(翻译)
- 详解版本控制利器Git,SVN的异同以及适用范围
- Android自定义View实现仿GitHub的提交活跃表格
- Ruby实现的删除已经合并的git分支脚本分享
- 在 Shell 提示符中显示 Git 分支名称的方法
- Git使用基础篇(一些常用命令和原理)
- git fork同步是什么意思?
- github配置使用指南
- github版本库使用详细图文教程(命令行及图形界面版)