git修改历史

  • 用git filter-branch修改所有commit的name and email。 ` git filter-branch -f –env-filter “GIT_AUTHOR_NAME=’Newname’; GIT_AUTHOR_EMAIL=’newemail’; GIT_COMMITTER_NAME=’Newname’; GIT_COMMITTER_EMAIL=’newemail’;” HEAD `

  • 撤销提交 git reset

  • 删除一个文件及其历史记录 link

  • 还找到一个东西,叫做我痛恨Git的10个理由

    ref: 1 2 3

shouxi /
Published under (CC) BY-NC-SA in categories tool  tagged with git 
comments powered by Disqus