zoukankan      html  css  js  c++  java
  • Git尝试,以及配置

    Git的配置

    git config --system --list系统自动配置的

    git config --global --list用户配置的

    所有的配置文件都保存在本地

    一个 Git 安装目录

    一个在User,目录下

    Git Bash输入。配置用户文件

    $ git config --global user.name "li33"

    $ git config --global user.email "1486662012@qq.com"

    环境变量是让你可以在任何位置使用这个文件。

    Git四个工作区

    //从working directory添加到Stage
    git add file 
    //从stage提交到history
    git commit
    //从history推送到Remote Directory
    git push
    

    反向步骤

    //从远处目录,推送到History
    git pull
    //从History重置到Stage
    git reset
    //从Stage,checkout到working Directory
    git checkout
    

    Workspace:工作区,平时存放代码的地方,有个.git的隐藏文件夹,

    Stage:暂存区,本质上是个文件

    Repository:本地仓库区,master主分支

    REmote:远处空间

    GitHub,国内例如码云:Gitee

  • 相关阅读:
    1、如何使用Azure Rest API创建虚拟机
    Ansible---2的Roles使用
    linux下的shell脚本
    生成器 yield和协程
    xshell
    markdown的使用
    加密
    Hbuilder打包app
    尾递归
    jupyter
  • 原文地址:https://www.cnblogs.com/li33/p/12745651.html
Copyright © 2011-2022 走看看