I want to sync my Jenkins backup data with git repo. so i follow following steps:

1- I have set git global credential into jenkins GIT option under configuration.

2- Installed scm sync plugin and put configuration parameter in jenkins scm sync configuration tab repo url git@github.com:username/jenkins\_config.git

3 - save

But i am getting below error:

> 
> "Error while adding SCM file : fatal: Not a git repository (or any of
>  the parent directories): .git"
> 
> 
>