Skip to content
Snippets Groups Projects

Git cheat sheet

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Florian Klemenz
    Edited
    git.sh 326 B
    # delete tag locally
    git tag -d <tag_name>
    
    # delete tag remotely
    git push --delete origin tagname
    
    # copy git contents from second remote
    git remote add upstream https://github.com/ogon-project/ogon.git
    git remote update
    git pull upstream master
    #git pull upstream master --allow-unrelated-histories
    git merge upstream/master
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment