Python学习---第十二天 git使用知识点积累

来源:互联网 发布:mysql execute using 编辑:程序博客网 时间:2024/05/15 19:13

在下这厢有礼了

确实今天不知道写什么了,抱歉,后期我补上。

我学习写一点git的知识



基本操作

git add .

git commit -m "filename"

git push --all

说明第一次使用git push命令需要加--all,之后不需要。

上面有图自己分析。


5种状态

未修改(Origin)

已修改(Modified)

已暂存(staged)

已提交(Committed)

已推送(Pushed)


撤销

1. git reset --hard 对于使用了git add的 操作

2.git reset --hard origin/master 对于使用了git add 和git commit的操作

3.git reset --hard HEAD^

   git push -f 

   git pull

对于使用了git add 和git commit和git push的操作


第十二天过去了

原创粉丝点击