Originally published as GitHub issue #86.
怎么修改git commit 信息
- git commit —amend 本地
- git commit —amend git push origin master —force 刚push
- git rebase -i HEAD~X X is the number of commits to go back Move to the line of your commit, change pick into edit, then change your commit message: git commit —amend Finish the rebase with: git rebase —continue 本地没push old
Comments
yihong0618
View comment · 2019-12-27T13:54:36Z
撤销commit git reset —soft HEAD^
yihong0618
View comment · 2020-05-21T06:44:03Z
checkout 正则git checkout — ‘*.py’
yihong0618
View comment · 2020-07-10T08:35:03Z
remove from add git reset
yihong0618
View comment · 2020-08-13T13:38:45Z
Git+Gerrit如何永久删除历史文件(大文件/私密文件) https://www.jianshu.com/p/085552205f19
yihong0618
View comment · 2020-10-27T02:05:44Z
add .gitkeep to empty folder
yihong0618
View comment · 2021-03-17T13:22:59Z
query GetUsers {
search(query: "location:China", first: 100, type: USER) {
userCount
pageInfo {
endCursor
hasNextPage
}
edges {
node {
... on User {
email
login
location
url
followers {
totalCount
}
}
}
}
}
}
yihong0618
View comment · 2021-12-17T08:03:36Z
只有这个答案是对的。。 https://stackoverflow.com/questions/34610705/git-windows-and-linux-line-endings