Git: Ignore compiled Google Go

后端 未结 4 1528
长情又很酷
长情又很酷 2021-02-09 02:58

My compiled Go code does not end with an extension on Linux.

Any tips for handling ignoring these in the .gitignore file?

4条回答
  •  面向向阳花
    2021-02-09 03:25

    If you are using the go tool to build your code you can use the -o flag to specify the output file name, so you can for example use go build -o bin/elf and then add bin/* to your .gitignore file.

提交回复
热议问题