Even if you want to run a Jenkins server locally for testing purposes to correctly configure a job Jenkins still needs to fetch the source from a repository. With Git this can be easily done without configuring a Git server. Just specify the path to a local Git repo with
file:// protocol like this:
Then input this path as repository URL in Jenkins.