下载地址:
https://git-scm.com/download/win
安装步骤:傻瓜式安装, 全部默认
安装完以后重启,单机鼠标右键 出现以下界面即安装成功
右键 git Bash Here 进入git命令行,在git命令行内你可以使用Linux下的基础命令
git config --global user.name XXX
git config --gloat user.email XXX@163.com
git config --list
git init
git add XXX
git add .
git reset HEAD XXX
git commit -m "这里写的是版本注释"
git commit -a -m "注释"
git rm XXX
git rm -f XXX
git rm -r XXX
git rm --cached XXX
git log
git log --oneline
git log --decorate --graph --all
git log --graph
git reset --hard HEAD^
git reset --hard HEAD^^
git reset -hard XXX
git status
git diff
git branch
git branch XXX
git checkout XXX
git branch -d XXX
将某个分支的内容合并到该分支
git merge XXX
现在Github创建账号,然后创建仓库
关联GitHub
git remote add github https://github.com/Ghost9216/Demo.git
关联码云
git remote add gitee https://gitee.com/ghostdot/Demo.git
git remote -v
git push github
git push gitee
git clone 连接地址
原文:https://www.cnblogs.com/ghostdot/p/12519501.html