Many times we might changed one file which we don't intent to do... but it was too late, until we found it, it is already push to repo. Let's assume, First, we checkout a feature branch, we have two files: a.txt: Init a b.txt: Init b This is original…
window下使用git: 输入命令:git clone git @github.com:Alan0521/dotvim.git 出现/bin/sh:git@github.com no such file or directory fatal:The remote end hung up unexpectabledly 改成命令: git clone git ://guthub.com/Alan0521/dotvim.git…
Git提交时提示'The file will have its original line endings in your working directory' Git出现错误 git add -A warning: LF will be replaced by CRLF in database/migrations/2017_07_04_10041   warning: LF will be replaced by CRLF warning: LF will be replaced by CR…
在git使用中如果提交错误的代码至远程服务器,可以使用git revert 命令回滚单次commit并且不影响其他commit. 回滚最新一次的提交记录: git revert HEAD 回滚前一次的提交记录 : git revert HEAD^ 对历史上的commit回滚: git revert 回滚历史commit很容易产生文件冲突,需要做好冲突处理. 使用SourceTree进行commit revert 在准备revert 的commit上右键 选择 reverse commit. re…
git error: unable to create file xxxx  Invalid argument 原因: mac  上创建的文件名里有冒号,这在windows 上是不允许的. 解决方式:mac 上重命名文件,提交.在windows 就可正产的pull了…
理解LGWR,Log File Sync Waits以及Commit的性能问题 一.概要: 1.  Commit和log filesync的工作机制 2.  为什么log file wait太久 3.   如何去度量问题出在那里呢? 二.log file sync等待的原因 1.  默认情况下我们commit一个事务是要等待logfile sync,这其中包括: (1)User  commit(用户提交的统计信息可以通过v$sesstat来查看) (2)DDL-这一部分主要是由于递归的事务提交所…
Git的纯命令操作,Install,Clone , Commit,Push,Pull,版本回退,撤销更新,分支的创建/切换/更新/提交/合并,代码冲突 这篇是接着上篇分布式版本库--Windows下Git的环境部署以及在GitHub上开源自己的项目讲的,上篇主要是说用GUI来图形化界面操作,但是一般我们程序员也不会这么干,用命令又轻松又愉悦,所以,这里我就再开了一篇来专门说一下纯命令是怎么去操作的,但是要注意哦,其实廖雪峰老师的网站就是非常赞的学习资源哦! 廖雪峰老师:http://www.li…
Overview 涉及Git一些日常操作 :) 基础知识 <Pro Git>至少了解branch,commit的概念,及基本的原理 Git常用魔法 存档:master代码回滚方法 我是QA,我用Git Git 工作区.暂存区和版本库 Overview 暂存区(stage, index)是 Git 最重要的概念之一 工作区: 你的目录下面的文件们 暂存区: 由.git/index保存引用,.git/object保存对象的区域 版本库: 仓库 Relations Why stage before…
报错现象 git  add . 的时候发现此报错 报错分析 看情况应该是不同系统对换行的识别不到位导致的 就常识来说文件是在windows下生成的所以换行和 linux 确实不同可能是因为这个导致的 报错解决 git config --global core.autocrlf false 同理在 pycharm 中也要做相关操作 在pycharm 中进行操作的时候也会提示这个问题. 如果选择 fix and commit 就会设置为 True 会被转换 所以我们要选择 commit as ls…
在操作git中有时候会提示 Unlink of file '......' failed. Should I try again? 原因是你工作目录有某些文件正在被程序使用,这个程序多半是Idea,VS或者eclipse,当然也可能是其他程序 解决方案不是简单的选择y或者n,而是关闭IDE,让IDE把这些文件释放掉 比如下面的操作,就出现了这个错误,原因是我故意用word打开了这文件 8.docx 原谅我不知道怎么让IDE在某个时刻霸占某些文件,只能让word做这个坏人了 如果你一定要知道是哪个…