zoukankan      html  css  js  c++  java
  • git 相关操作

    日常工作中的git操作,更新中:

    1. 查看当前用户名和修改密码

     1 //查看当前登录的用户
     2 git config user.name
     3  
     4 //查看当前登录的邮箱
     5 git config user.email
     6  
     7 //设置用户名
     8 git config --global user.name "new name"
     9 
    10 //设置邮箱
    11 git config --global user.email "new email"
    12  
    13 //设置密码
    14 git config --global user.password "new password"
    15 
    16 //修改用户名
    17 git config --global --replace-all user.name "new name"
    18 
    19 //修改邮箱
    20 git config --global  --replace-all user.email "new email"
    21  
    22 //修改密码
    23 git config --global  --replace-all user.password "new password"

    2.克隆分支

    1 //复制分支
    2 git clone 地址
    3 
    4 //复制指定分支
    5 git clone -b 分支名 地址

    3.清除用户名、密码

    1 //清除缓存的username、password
    2 git credential-manager uninstall
    3 
    4 
    5 //清除所有的username、password
    6 git config --system --unset credential.helper
  • 相关阅读:
    深入理解C++ 11新特性:1)
    Effective Java 第三版:1)
    Java 8 实战:2)
    MyBatis Plus
    Java 8 实战:1)
    十二要素应用宣言
    Dubbo 2):源码级
    [SCOI2009]windy数 数位dp
    [ZJOI2006]物流运输 最短路 动态规划
    [ZJOI2008]骑士
  • 原文地址:https://www.cnblogs.com/whycai/p/13099321.html
Copyright © 2011-2022 走看看