前面建立工程等,大概步骤如下:
git --bare init
git clone
添加文件后,
git add
git commit
后,
ckt@ckt-desktop:~/haha_test/test1/local0$ ls
brom.dll META_APP.dll NvramToolDlg.h Resource.h
brom.h METAAPP.h NvramTool.dsp StatusStatic.cpp
brom.lib META_APP.lib NvramTool.dsw StatusStatic.h
ChipSelect.cpp META_DLL.dll NvramTool.h StdAfx.cpp
ChipSelect.h META_DLL.lib NvramTool.ncb StdAfx.h
com_enum.h meta.h NvramTool.opt uart.h
ComSelect.cpp mtk_mcu.h NvramTool.plg Util.cpp
ComSelect.h NvramTool.aps NvramTool.rc Util.h
Debug NvramTool.clw ReadMe.txt
ExtClockSelect.cpp NvramTool.cpp Release
ExtClockSelect.h NvramToolDlg.cpp res
ckt@ckt-desktop:~/haha_test/test1/local0$ git pull
Your configuration specifies to merge with the ref 'master'
from the remote, but no such ref was fetched.
ckt@ckt-desktop:~/haha_test/test1/local0$ git fetch
ckt@ckt-desktop:~/haha_test/test1/local0$ ls
brom.dll META_APP.dll NvramToolDlg.h Resource.h
brom.h METAAPP.h NvramTool.dsp StatusStatic.cpp
brom.lib META_APP.lib NvramTool.dsw StatusStatic.h
ChipSelect.cpp META_DLL.dll NvramTool.h StdAfx.cpp
ChipSelect.h META_DLL.lib NvramTool.ncb StdAfx.h
com_enum.h meta.h NvramTool.opt uart.h
ComSelect.cpp mtk_mcu.h NvramTool.plg Util.cpp
ComSelect.h NvramTool.aps NvramTool.rc Util.h
Debug NvramTool.clw ReadMe.txt
ExtClockSelect.cpp NvramTool.cpp Release
ExtClockSelect.h NvramToolDlg.cpp res
ckt@ckt-desktop:~/haha_test/test1/local0$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '/home/ckt/haha_test/test1/m0'
ckt@ckt-desktop:~/haha_test/test1/local0$ git push origin master
这句话很关键,不然 出现fatal: The remote end hung up unexpectedly错误
Counting objects: 82, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (81/81), done.
Writing objects: 100% (82/82), 13.34 MiB | 3.20 MiB/s, done.
Total 82 (delta 18), reused 0 (delta 0)
Unpacking objects: 100% (82/82), done.
To /home/ckt/haha_test/test1/m0
* [new branch] master -> master
ckt@ckt-desktop:~/haha_test/test1/local0$ git branch
* master
ckt@ckt-desktop:~/haha_test/test1/local0$
分享到:
相关推荐
result=18, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal: 过早的文件结束符(EOF) fatal: index-pack failed Solution for failed with error: RPC failed; result=18, HTTP code = 200 ...
解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法 今天Git push的时候 fatal:remote error: You can't push to git://github.com/username/*.git Use git@github....
git init xxxx的时候报错: fatal: git 1.7.2 or later required 或许是git版本太低,你可以自己编译最新git源码进行安装。
问题描述: 在使用git 进行提交时, 出现上面这个报错, 导致无法提交. 报错大致意思就是创建index.lock文件失败,因为已经存在index.lock文件了. index.lock文件是在.git下面, 而.git是一般是隐藏的, 那么可以通过以下...
git-fatal the remote end hung up unexpectedly 解决方法
leetcode 答案 【toc】 ...个人收集的有用项目,使用git submodule方式,引用已有项目。 项目环境 submodule的使用 参考: 增加submodule git submodule add https://SubModule.git 首次拉取 git clone ...
基础命令: 设置用户信息:git config --global user.name "itcast",git config --global user.email "hello@itcast.cn" 查看配置信息:git config --list 获取Git仓库的两种方式: 在本地初始化一个Git...git push
第一步 重新生成ssh ssh-keygen -t rsa -C “这里需要填写邮箱。我填写的是我的绑定主邮箱。我想其他邮箱也是可以的,只不过我没有测试。” 第二步 ...最后输入ssh -T git@gitee.com 即可 作者:亦圻
主要介绍了解决fatal:remote error:You can't push to git://github.com/username/*.git问题的办法的相关资料,需要的朋友可以参考下
开源项目-bobbo-git-s3-push.zip,git-s3-push: Deploy git repos to Amazon S3, written in Go
如何用git将本地项目push到GitHub上?如何用git将本地项目push到GitHub上?
同时push到GitHub和Gitee
18年7月更新,清华镜像,完美解决 Yocto,Android fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle 错误,绕开GFW
git-auto-push 用于自动推送由工具生成的文件的脚本所需工具须藤apt-get install inotify-tools ssh-没有它,您每次都需要输入密码用法-w " /abs/path/to/file-to-watch " -s " /abs/path/to/repo " -d " relative-...
最近公司将内部使用的代码由svn迁到了git上,所以也必须学者使用Git命令。 虽说git的模式和svn区别很大,但想必也不是什么难事。但没曾想在第一步git clone的时候就踩到了一个大坑……废话不多提,先看错误代码: ...
git-ray :laptop: :water_pistol: -一个... arg : String , // a string argument to pass as the main param to git params : String [ ] , // git command options nodeSpawnOptions : Object = { cwd : process
Cpp:PAT甲级/乙级g ++ 4.72 py:python学习 Markdown: 自动发博客 ...fatal: The remote end hung up unexpectedly 法1:$ git config --local http.postBuffer 524288000 法2:修改config文件 [http]
Git push 常见用法,git里面help 可以帮助我们查看。这个文档只是补充。。
初始化: git init 连接远程仓库:git remote add origin git@github.com:yourName/repositoryname.git 从远程仓库pull文件:git pull origin ...推送到远程仓库:git push -u origin master (master 默认分支)
进入到上传的文件的目录下,使用命令初始化本地仓库git init 2:git add . 把本地文件添加到本地仓库暂存区,.的意思是把当前目录下所有的文件及子目录都添加管理,也可以把.换成相应的文件名 git add .或...