Sublime Forum

Git push --force --tags



What is the shorcut or way to do this command?

git push --force --tags

Or a way to sync local tags with remote/origin?




Hi @netinho,

Currently this operation isn’t officially supported, though you can definitely add this as a custom command.

You can do the following:

  1. Open Sublime Merge and navigate to Preferences > Browse Packages...
  2. Navigate to the Users folder, and create a file called Tag Section.sublime-menu
  3. Open the file and add the following:
		"caption": "Force Push All Tags",
		"command": "git", "args":
			"argv": ["push", "--force", "--tags"],
  1. Once you’ve saved this file, you can right-click the Tags list item in the locations bar, and select “Force Push All Tags”.

I hope this helps! Let me know how you go.

Kind regards,
- Dylan

1 Like