missing .git-hub
joelandman opened this issue · 4 comments
I installed to the tools to play with them (so as to improve my fairly ... er .. old VCS workflow) and ran into this (after creating a specific issue on github for my repo)
joe@gandalf:~/nlytiq/dev/pcilist$ git hub 1
No .git-hub found. Exiting
This is for pcilist. Is there any guidance on how to create .git-hub ? I don't see it in my tree
joe@gandalf:~/nlytiq/dev/pcilist$ find -type f | grep \.git\-hub
joe@gandalf:~/nlytiq/dev/pcilist$
and
joe@gandalf:~/nlytiq/dev/pcilist$ ls -alF .git/
total 60
drwxr-xr-x 8 joe joe 4096 Jul 27 09:18 ./
drwxr-xr-x 3 joe joe 4096 Mar 6 2019 ../
drwxr-xr-x 2 joe joe 4096 Mar 6 2019 branches/
-rw-r--r-- 1 joe joe 262 Mar 6 2019 config
-rw-r--r-- 1 joe joe 73 Mar 6 2019 description
-rw-rw-r-- 1 joe joe 99 Jul 27 09:18 FETCH_HEAD
-rw-r--r-- 1 joe joe 23 Mar 6 2019 HEAD
drwxr-xr-x 2 joe joe 4096 Mar 6 2019 hooks/
-rw-rw-r-- 1 joe joe 433 Jul 27 09:18 index
drwxr-xr-x 2 joe joe 4096 Mar 6 2019 info/
drwxr-xr-x 3 joe joe 4096 Mar 6 2019 logs/
drwxr-xr-x 22 joe joe 4096 Mar 6 2019 objects/
-rw-rw-r-- 1 joe joe 41 Jul 27 09:18 ORIG_HEAD
-rw-r--r-- 1 joe joe 114 Mar 6 2019 packed-refs
drwxr-xr-x 5 joe joe 4096 Mar 6 2019 refs/
In the CONFIG
documentation for that script, you see this:
To use this script, it must find a readable file named
.git-hu
> in the current directory. The file should be in the following format:
user RepoUserName
repo NameOfRepo
token GithubOathToken
So if you wanted to create one for the https://github.com/MeMeMe/some-project/
github project, you'd do this:
user MeMeMe
repo some-project
token $GithubOathToken
And replace $GithubOathToken
with your personal OAuth token.
Pull requests for documentation would be awesome :)
(Though I suppose reading .git/config
might make some of this simpler, aside from the OAuth token)
So in your case, I think you want:
user joelandman
repo pcilist
token $GithubOathToken
I've updated the scripts to give better documentation, including explaining this issue. This should be resolved.