git的一些问题
来源:互联网 发布:淘宝金牌淘拍档 编辑:程序博客网 时间:2024/06/05 08:00
- [root@gitserver /data/work/www/rest/lib/Business/Inventory]# git pull
- Enter passphrase for key '/root/.ssh/id_rsa':
- Updating 70e8b93..a0f1a6c
- error: Your local changes to the following files would be overwritten by merge:
- rest/lib/Business/Inventory/ProductStatus.php
- Please, commit your changes or stash them before you can merge.
- Aborting
- [root@gitserver /data/work/www/rest/lib/Business/Inventory]# git checkout -f
- Your branch is behind 'origin/master' by 2 commits, and can be fast-forwarded.
- [root@gitserver /data/work/www/rest/lib/Business/Inventory]# git pull
- Enter passphrase for key '/root/.ssh/id_rsa':
- Updating 70e8b93..a0f1a6c
- Fast-forward
- rest/lib/Business/Inventory/ProductStatus.php | 1 +
- 1 files changed, 1 insertions(+), 0 deletions(-)
- mode change 100644 => 100755 rest/lib/Business/Inventory/ProductStatus.php
- $ git pull
- Password:
- You asked me to pull without telling me which branch you
- want to merge with, and 'branch.master.merge' in
- your configuration file does not tell me, either. Please
- specify which branch you want to use on the command line and
- try again (e.g. 'git pull <repository> <refspec>').
- See git-pull(1) for details.
- If you often merge with the same branch, you may want to
- use something like the following in your configuration file:
- [branch "master"]
- remote = <nickname>
- merge = <remote-ref>
- [remote "<nickname>"]
- url = <url>
- fetch = <refspec>
- See git-config(1) for details.
- git remote add -f origin git@192.168.21.44:rest.git
- git config branch.master.remote origin
- git config branch.master.merge refs/heads/master
忽略已跟踪的文件
git update-index --assume-unchanged filename撤销用:
git update-index --no-assume-unchanged filename
删除已入仓库的文件夹
git rm -r --cached .idea/
git commit -m 'x'
0 0
- git的一些问题
- git的一些问题
- Git 安装的一些问题
- 关于GIT的一些问题
- Git Repo 的一些问题
- git提交的一些小问题
- 使用git容易出现的一些问题
- 关于git中tag的一些问题
- 使用git遇到的一些问题
- git碰到的一些小问题
- 初次使用git遇见的一些问题
- 初学git 一些问题的解决方法
- git和Linux遇到的一些问题
- Git中关于 git pull 的一些问题
- Git!一些小问题^&*
- git中的一些问题
- git 使用的要注意的一些问题
- Git使用的一些命令和遇到的问题
- git 使用 (此处作为基础 大多是只有一个分支时的简单操作)
- Web安全实践(14)嗅探,arp欺骗,会话劫持与重放攻击(下)
- Web安全实践(13)嗅探,arp欺骗,会话劫持与重放攻击(上)
- 学的多,忘的快,我该怎么办?
- iOS唯一标识符
- git的一些问题
- 六星经典CSAPP-笔记(3)程序的机器级表示
- dstat linux监控工具的使用
- 3333333333333333333
- Sed简介 如何做替换
- 反渗透设备:反渗透设备应用领域具体说明
- 反渗透设备:反渗透设备技术特点详细解析
- 博弈-1
- 查找目录下的所有文件中是否含有某个字符串 linux