内容纲要

git init 初始化

git add . 添加文件

git remote add origin https://…… 添加远程仓库

git commit -m "……" 提交更改

git config --global user.email "you@example.com" 设置邮箱

git config --global user.name "Your Name" 设置用户名

git push origin master 推送到远程仓库

 

=================================================

git reset head 撤销文件更改

git reset head ……撤销某文件更改

git status 查看项目状态

git merge 合并

git fetch 从远程仓库获取

git pull 从远程仓库获取+合并

git diff 比较版本差异

用户名密码错了的时候去windows凭据里删了就好
标签:

Leave a Reply

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据