Skip to content

Instantly share code, notes, and snippets.

@ngelx
Last active March 20, 2023 05:49
Show Gist options
  • Save ngelx/b84fe4fb1c7bdceeced701f1829e6293 to your computer and use it in GitHub Desktop.
Save ngelx/b84fe4fb1c7bdceeced701f1829e6293 to your computer and use it in GitHub Desktop.

Revisions

  1. ngelx revised this gist Mar 20, 2023. No changes.
  2. ngelx revised this gist Mar 20, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions move git tag.md
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,9 @@
    `git tag <tagname> <commitId>` # make a new tag locally
    `git push --tags`

    Remote
    ### Remote

    git pull --tags -f
    `git pull --tags -f`


    ## Pretty printing
  3. ngelx revised this gist Mar 20, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions move git tag.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    ## Local repo

    `git tag -d <tagname>` # delete the old tag locally
    `git push origin :refs/tags/<tagname> # delete the old tag remotely
    git tag -a <tagname> <commitId> # make a new tag locally
    git push origin <tagname>
    `git push origin :refs/tags/<tagname>` # delete the old tag remotely
    `git tag <tagname> <commitId>` # make a new tag locally
    `git push --tags`

    Remote

  4. ngelx revised this gist Mar 20, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion move git tag.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ## Local repo

    `git tag -d <tagname>` # delete the old tag locally
    git push origin :refs/tags/<tagname> # delete the old tag remotely
    `git push origin :refs/tags/<tagname> # delete the old tag remotely
    git tag -a <tagname> <commitId> # make a new tag locally
    git push origin <tagname>

  5. ngelx revised this gist Mar 20, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion move git tag.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    ## Local repo
    git tag -d <tagname> # delete the old tag locally

    `git tag -d <tagname>` # delete the old tag locally
    git push origin :refs/tags/<tagname> # delete the old tag remotely
    git tag -a <tagname> <commitId> # make a new tag locally
    git push origin <tagname>
  6. ngelx revised this gist Mar 20, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions move git tag.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    ## Local repo
    git tag -d <tagname> # delete the old tag locally
    git push origin :refs/tags/<tagname> # delete the old tag remotely
    git tag -a <tagname> <commitId> # make a new tag locally
  7. ngelx revised this gist Mar 20, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion move git tag.md
    Original file line number Diff line number Diff line change
    @@ -8,5 +8,5 @@ Remote
    git pull --tags -f


    ## Pretty
    ## Pretty printing
    git log --pretty=oneline
  8. ngelx revised this gist Mar 20, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion move git tag.md
    Original file line number Diff line number Diff line change
    @@ -8,5 +8,5 @@ Remote
    git pull --tags -f



    ## Pretty
    git log --pretty=oneline
  9. ngelx revised this gist Mar 20, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion move git tag.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ git push origin :refs/tags/<tagname> # delete the old tag remotely
    git tag -a <tagname> <commitId> # make a new tag locally
    git push origin <tagname>

    Remote
    Remote

    git pull --tags -f

  10. ngelx revised this gist Mar 20, 2023. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion move git tag.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,12 @@
    ‎‎​
    git tag -d <tagname> # delete the old tag locally
    git push origin :refs/tags/<tagname> # delete the old tag remotely
    git tag -a <tagname> <commitId> # make a new tag locally
    git push origin <tagname>

    Remote

    git pull --tags -f



    git log --pretty=oneline
  11. ngelx created this gist Mar 20, 2023.
    1 change: 1 addition & 0 deletions move git tag.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ‎‎​