Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git 存档 #86

Open
yihong0618 opened this issue Dec 4, 2019 · 7 comments
Open

Git 存档 #86

yihong0618 opened this issue Dec 4, 2019 · 7 comments
Labels
技术文章 技术文章

Comments

@yihong0618
Copy link
Owner

yihong0618 commented Dec 4, 2019

怎么修改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 yihong0618 added the 技术文章 技术文章 label Dec 4, 2019
@yihong0618
Copy link
Owner Author

撤销commit
git reset --soft HEAD^

@yihong0618
Copy link
Owner Author

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

@yihong0618
Copy link
Owner Author

remove from add
git reset

@yihong0618
Copy link
Owner Author

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

@yihong0618
Copy link
Owner Author

add .gitkeep to empty folder

@yihong0618
Copy link
Owner Author

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
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
技术文章 技术文章
1 participant