<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Git on Cylon&#39;s Collection</title>
    <link>https://www.161616.top/tags/git/</link>
    <description>Recent content in Git on Cylon&#39;s Collection</description>
    <generator>Hugo -- 0.125.7</generator>
    <language>zh</language>
    <lastBuildDate>Sun, 02 Apr 2023 23:00:36 +0800</lastBuildDate>
    <atom:link href="https://www.161616.top/tags/git/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>删除github上面的历史提交记录</title>
      <link>https://www.161616.top/delete-github-commit/</link>
      <pubDate>Sun, 02 Apr 2023 00:00:00 +0000</pubDate>
      <guid>https://www.161616.top/delete-github-commit/</guid>
      <description>如果不小心提交github提交错了，而 --amend 也不能修改提交者的信息，可以通过尝试下面的方式
Checkout
bash 1 git checkout --orphan &amp;lt;latest_branch&amp;gt; Add all the files
bash 1 git add -A Commit the changes
bash 1 git commit -am &amp;#34;commit message&amp;#34; Delete the branch
bash 1 git branch -D main Rename the current branch to main
bash 1 git branch -m main Finally, force update your repository
bash 1 git push -f origin main 缺点是：所有该分支的提交记录都将被删除
Reference
how to delete all commit history in github?</description>
    </item>
    <item>
      <title>git在windows上常用配置</title>
      <link>https://www.161616.top/awesome-git-configration-in-windows/</link>
      <pubDate>Tue, 24 Jan 2023 00:00:00 +0000</pubDate>
      <guid>https://www.161616.top/awesome-git-configration-in-windows/</guid>
      <description>Windows git &amp;ldquo;warning: LF will be replaced by CRLF&amp;rdquo; [1] bash 1 git config --global core.autocrlf false Disable Credential Manager bash 1 2 3 4 5 git config --global credential.modalprompt false git credential-manager remove -force git credential-manager uninstall --force Multi account management [2] step1: clean globle setting
bash 1 2 git config --global --unset user.name git config --global --unset user.email step2： change config file only ssh
bash Do not Pop-ups authtication [3] This question is the git shell prompt input user and password in an openssh popup on windows plateform</description>
    </item>
    <item>
      <title>awesome git command</title>
      <link>https://www.161616.top/awesome-git-command/</link>
      <pubDate>Sun, 08 Nov 2020 00:00:00 +0000</pubDate>
      <guid>https://www.161616.top/awesome-git-command/</guid>
      <description>Tag command describe git tag 列出所有tag git tag -l v1.* 列出符合条件的tag（筛选作用） git tag [tag_name] 创建轻量tag（无-m标注信息） git push REMOTE TAG 推送一个tag到远端 git push origin &amp;ndash;tags* 推送所有本地tag到远程 git push origin :refs/tags/[REMOTE TAG]
git push &amp;ndash;delete REMOTE TAG 删除远程指定tag git fetch origin [remote_tag_name] 拉取远程指定tag git show [tag_name] 显示指定tag详细信息 git push origin [local_tag_name] 推送指定本地tag到远程 git tag NEW_TAG OLD_TAG
git tag -d OLD_TAG 重命名本地tag git tag -d [local_tag_name] 删除本地指定tag git ls-remote &amp;ndash;tags origin 查询远程tags git tag -a [tag_name] 创建含注解的tag git fetch origin [remote_tag_name]git checkout [remote_tag_name] git branch checkout远端tag到本地 Checking 检查工作目录与暂存区的状态</description>
    </item>
  </channel>
</rss>
