版权声明:找不到大腿的时候,让自己变成大腿. https://blog.csdn.net/Xin_101/article/details/86711078
Q1
- Problem
# 请输入一个提交信息以解释此合并的必要性,尤其是将一个更新后的上游分支
# 合并到主题分支。
#
# 以 '#' 开头的行将被忽略,而且空提交说明将会终止提交。
- Solve
写入信息后,Ubuntu
环境使用ctrl+x
选择是否保存.
Q2
- Problem
To https://github.com/xindaqi/AIFuture.git
! [remote rejected] master -> master (pre-receive hook declined)
error: 无法推送一些引用到 'https://github.com/xindaqi/AIFuture.git'
- Solve
清理工作区,重新pull,重新push.(无奈>_<)
Q3
- Problem
撤销commit
操作 - Solve
(1) 查看日志:git log
commit 8ff71501be6e5860f3441b712ec6a9b04a69fd9a (HEAD -> master, matplot_test)
add matplot test, draw different image
commit e7dea5372748d996e35862dfce0b4483a60fc55f (origin/master)
add python library for xindaqi
(2) 撤销commit id
日志commit
后面的字符串为id
.
git rest --hard 8ff71501be6e5860f3441b712ec6a9b04a69fd9a
[参考文献]
[1]https://www.jianshu.com/p/664bb86a11e2
[2]https://www.cnblogs.com/ningkyolei/p/4334990.html#undefined