Skip to content

Instantly share code, notes, and snippets.

@sjimenez44
Created October 12, 2021 15:23
Show Gist options
  • Save sjimenez44/223828998b67d720c94c3a71fadfa529 to your computer and use it in GitHub Desktop.
Save sjimenez44/223828998b67d720c94c3a71fadfa529 to your computer and use it in GitHub Desktop.
Git cheatsheet

Git cheatsheet

Table of contents

  1. Git Local
  2. Tags

Git local

If you want to change the remote repositorie of a project

  git init
  git remote add origin [url_repository]
  git fetch
  git reset --hard origin/devel
  git checkout devel

Tags

Create

  • Local tag:
  git tag [tag_name]
  • Remote tag:
  git push --tags

Delete

  • Local tag:
  git tag -d [tag_name]
  • Remote tag:
  git push --delete origin [tag_name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment