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
  • 相关阅读:
    python_day3
    python-day2
    python-day1
    【收集】安卓手机在市场占比的网址查找
    while循环
    switch多选择结构
    if选择结构
    顺序结构
    Scanner:求和 、求平均值
    Scanner:用户交互
  • 原文地址:https://www.cnblogs.com/whycai/p/13099321.html
Copyright © 2011-2022 走看看