statamic / spock

Automatically perform git commits, pushes, and other cli actions when Statamic content changes
95 stars 16 forks source link

Spock can't handle ssh keys #37

Closed grebbekevin closed 5 years ago

grebbekevin commented 5 years ago

Hee Guys,

We are new to spock and are having trouble with using spock to push to our git (bitbucket) repository. It is a private repository and needs an ssh key (or user and password) but how are we going to let spock use an ssh key and password?

Please let me know.

jesseleite commented 5 years ago

Spock doesn't need to know credentials, as Spock doesn't make the connection to your remote. It just runs git add, git commit, and git push commands for you, as a CLI user would. You need to ensure connection to your remote is properly setup in your project. If you can SSH in yourself and run git push successfully, then Spock should be able to git push as well.

jesseleite commented 5 years ago

Hope that helped! Closing this for now, feel free to re-open if need to.