• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






cwhycwhy

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  Git

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