Git

132 阅读1分钟

Git

git常见问题 错误

三年 Git 使用心得 & 常见问题整理 - 知乎 (zhihu.com)

linux命令

  1. cd dfy 进入dfy文件夹
  2. cd .. 退到上一级文件夹
  3. ls 显示当前文件夹下所有文件
  4. touch dfy.txt 新建文件dfy.txt
  5. pwd 显示当前路径
  6. rm dfy.xml 删除文件dfy.xml
  7. mkdir test 在当前文件夹下新建test文件夹
  8. rm -r test 删除当前文件夹下的test文件夹
  9. clear 清屏
  10. mv
  11. history 查看历史命令
  12. help 帮助
  13. exit 退出

git 命令:

  1. git --version 查看版本
  2. git config -l 查看所有的配置
  3. git config --system --list 查看系统的配置
  4. git config --system --list 查看系统的配置

启动Git

安装完成时菜单有 git bash; 或者在任意文件夹下右键 bash here

用户名密码是必须要配置的