奇迹969

 

Git分布式版本控制工具

目标

  • 了解Git的基本概念
  • 能够概述Git工作流程
  • 能够使用Git的常用命令
  • 熟悉Git代码托管服务
  • 能够使用idea操作Git

 

第一步安装git     

  右键git  bahs   执行

  git config -global user.name ‘****’

  git config -global user.email '****'

第二部  touch  ~/.bashrc     

第三部在  bashrc文件中加入

  alias git-log='git log --pretty=online --all --graph --abbrev-commit'
  alias ll='ls -al'

  重启git bash 执行   sourcr ~/.bashrc

第五部  中文乱码

  执行 git config --global core.quotepath false

  D:\Software\Git\Git\etc\bash.bashrc 文件末尾加入

  export LANG="zh_CN.UTF-8"
  export LC_ALL="zh_CN.UTF-8"

第五部 创建仓库文件夹  右键 git bash --->执行   git init

 

第六步基础指令:

        git add   -->git commite

(工作区--》暂存区--》仓库)

 

posted on 2021-11-12 21:33  奇迹969  阅读(23)  评论(0编辑  收藏  举报

导航