Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 如何使用mac从终端窗口向GitHub存储库添加标记?_Macos_Command Line_Github_Tags_Terminal - Fatal编程技术网

Macos 如何使用mac从终端窗口向GitHub存储库添加标记?

Macos 如何使用mac从终端窗口向GitHub存储库添加标记?,macos,command-line,github,tags,terminal,Macos,Command Line,Github,Tags,Terminal,基本上我想添加一个标记,但我只能使用命令行,我尝试了git tag-m这很简单: git tag my-tag git push --all-tags 如果您还没有推送提交,那么您也希望将它们带到上游,因为推送标记并不同时推送提交: git push 就这样

基本上我想添加一个标记,但我只能使用命令行,我尝试了git tag-m

这很简单:

git tag my-tag
git push --all-tags
如果您还没有推送提交,那么您也希望将它们带到上游,因为推送标记并不同时推送提交:

git push
就这样