gitblog icon indicating copy to clipboard operation
gitblog copied to clipboard

Git 存档

Open yihong0618 opened this issue 4 years ago • 7 comments

怎么修改git commit 信息

  1. git commit --amend 本地
  2. git commit --amend git push origin master --force 刚push
  3. 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

yihong0618 avatar Dec 04 '19 02:12 yihong0618

撤销commit git reset --soft HEAD^

yihong0618 avatar Dec 27 '19 13:12 yihong0618

checkout 正则git checkout -- '*.py'

yihong0618 avatar May 21 '20 06:05 yihong0618

remove from add git reset

yihong0618 avatar Jul 10 '20 08:07 yihong0618

Git+Gerrit如何永久删除历史文件(大文件/私密文件) https://www.jianshu.com/p/085552205f19

yihong0618 avatar Aug 13 '20 13:08 yihong0618

add .gitkeep to empty folder

yihong0618 avatar Oct 27 '20 02:10 yihong0618

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 avatar Mar 17 '21 13:03 yihong0618

只有这个答案是对的。。 https://stackoverflow.com/questions/34610705/git-windows-and-linux-line-endings

yihong0618 avatar Dec 17 '21 08:12 yihong0618