git 日志技术
摘要:1.git log, 在一个分支下, 以时间的倒序方式显示你制造的所有commit列表,包含创建人,时间,提交了什么等信息: 2. git reflog, 获取您在本地repo上还原commit所做工作的完整历史记录, 它将显示除提交以外, 还包括其他操作(checkout, reset等) , 这
阅读全文
Git常用命令
摘要:项目错误恢复 方法一: $ echo >> about.html # Appends a newline to about.html $ echo > about.html # overwrite about.html with a newline [website (master)]$ git c
阅读全文
Prompt branches and tab completion
摘要:编辑.bash_profile, 加入如下文本: # Git configuration# Branch name in promptsource ~/.git-prompt.shPS1='[\W$(__git_ps1 " (%s)")]\$ 'export PROMPT_COMMAND='echo
阅读全文
使用其他分支替换master分支
摘要:Updates were rejected because the tip of your current branch is behind
阅读全文