Skip to content

mangar/GoAutoCommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Go - AutoCommit

Configuration

Check the config.json file configuration

Template:

{
    "config":{
        "log":"/mnt/c/Users/my/loglogfile.log"
    },
    "repos":[
        {
            "name": "Temp",
            "directory": "/mnt/c/Users/my/repos/temp"
        }
    ]    
}
  • config
    • log: Directory for the log file
  • repos
    • name: Name for organization
    • directory: Local repository

Generate the binary

For Windows on Linux machine

# Inside `src` folder
GOOS=windows GOARCH=amd64 go build -o goautocommit.exe main.go

For the same machine

# Inside `src` folder
go build -o goautocommit main.go