zoukankan      html  css  js  c++  java
  • git

    git 设置代理

    git config --global http.proxy socks5://127.0.0.1:7890
    git config --global https.proxy socks5://127.0.0.1:7890
    
    # 取消代理设置
    git config --global --unset http.proxy
    git config --global --unset https.proxy
    

    清空所有commit记录

    # 基于当前分支创建一个独立的分支 new_branch
    git checkout --orphan new_branch
    
    # 添加所有文件变化至暂存空间
    git add -A
    
    # 提交并添加提交记录
    git commit -am "commit message"
    
    # 删除当前分支
    git branch -D master
    
    # 重新命名当前独立分支为 master
    git branch -m master
    
    # 推送到远端分支
    git push -f origin master
    

  • 相关阅读:
    表单
    框架
    表格
    列表
    标签
    封装类(包装类)
    常见类 --Object
    日志
    异常
    选择结构
  • 原文地址:https://www.cnblogs.com/gebron/p/14516226.html
Copyright © 2011-2022 走看看