Open ExperimentsInHonesty opened 3 years ago
@Olivia-Chiong has made a wiki, which I turned into a generic template and placed on the repo: https://github.com/hackforla.org/.github and we are in the process of documenting how to copy the wiki to a specific repo when you need it. Here is what Thad wrote for the Civic Tech Stucture BOP project. It still seems fairly incomprensible to me. We need someone who can document this a little more clearly. Possibly with screen shots. Might be worth asking Dean from 100 Automations to look at it, since he did it on that project.
Looks like my documentation comment got lost. This will have to do:
clone the brigade-playbook GitHub using ssh credentials, not HTTP create a wiki page on brigade-playbook (or whatever new target) git submodule add git@github.com:codeforamerica/brigade-playbook.wiki.git .github.wiki (substitute your repo name, do not copy it from the website) git clone https://github.com/hackforla/.github.wiki.git hfla-github-wiki copy all the files over to the e.g. brigade-playbook one in .github.wiki folder. commit the files to brigade-playbook
Create a single page. You will be replacing it with the template so there is no need to customize it.
Git Bash
application and open it.ssh-keygen
press enter
a few times to accept defaults (hardly anyone really has a passcode to their github SSH key, but you're welcome to make one.)clip < ~/.ssh/id_rsa.pub
Go to your own GitHub profile and click Settings
Then choose
Click on the New SSH Key button
Input your key on the next screen
This image is from a windows machine, but it's basically the same thing with a MAC finder window.
any instructions that say type, are meant to be typed into the command line interface
type git clone git@github.com:hackforla/.github.git
replace the brackets and the items in them with your information
customize and type git clone git@github.com:[name of your org/name of the repo].git
type cd [name of the repo]
This is that same one you made when you setup the wiki initially (1st step).
customize and type git submodule add git@github.com:[name of your GitHub org/name of the repo].wiki.git .github.wiki
type open .github.wiki
on a Mac
type explorer .github.wiki
on a PC
This will open a window on your computer with one file in it. Leave this window open so that you can copy the files to it later.
type cd ..
This will also create a directory called hfla-github-wiki
type git clone https://github.com/hackforla/.github.wiki.git hfla-github-wiki
type open hfla-github-wiki
on a Mac
type explorer hfla-github-wiki
on a PC
This will open a window on your computer. Leave this window open so that you can copy the files from it, after you have pulled them down.
type cd hfla-github-wiki
type git pull
(you don't need to git pull
if you just cloned)
From the hfla-github-wiki window/folder to the .github.wiki window/folder
type cd ..
type cd [same as name of your repo]
type cd .github.wiki
type git add .
type git commit -m "upload the template wiki to the repo"
type git push
If you get lost and don't know which directory you are in, type pwd
Before you commit, if this is your first commit, do:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Notes about the commands used to setup the ssh. I looked on GitHub but their instructions were much more complicated and not specific to the message you would see.
$ ssh-keygen $ cat /Users/bonniewolfe/.ssh/id_rsa.pub
Prerequisite on Windows:
... follow directions from github on making an SSH key
or:
in Git Bash type ssh-keygen
press enter
a few times to accept defaults (hardly anyone really has a passcode to their github SSH key, but you're welcome to make one.)
in Git Bash type clip < ~/.ssh/id_rsa.pub
copy and follow instructions from github on adding the key you have copied
Step 2:
Git Bash
application and open it.Git Bash
window type cd
then drag the folder into the Git Bash window (REPLACE the single quotes with new single quotes) then press enter
On windows open
doesn't exist, use explorer
explorer .github.wiki
... then later...explorer hfla-github-wiki
git pull
if you just cloned (one less step)Should probably say somewhere, if you get lost and don't know which directory you are in, type pwd
Should be git add .
not add .
Before you commit, if this is your first commit, do:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Rest is good
on the mac version there needs to be some notes about what directory they are starting in, and how to list contents (ls), etc.
Prerequisite on Windows:
Git Bash
application and open it.ssh-keygen
press enter
a few times to accept defaults (hardly anyone really has a passcode to their github SSH key, but you're welcome to make one.)clip < ~/.ssh/id_rsa.pub
Follow instructions below on adding the key you have copied
Go to your own GitHub profile and click Settings
Then choose
Click on the New SSH Key button
Input your key on the next screen
Prerequisite on Windows:
Step 2:
Git Bash
application and open it.Git Bash
window type cd
then drag the folder into the Git Bash window (REPLACE the single quotes with new single quotes) then press enter
Note to add how to update the wiki if this is not the first download of the wiki template
git pull
if you just cloned (one less step)Should probably say somewhere, if you get lost and don't know which directory you are in, type pwd
Before you commit, if this is your first commit, do:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Prerequisites: The link to github asks you to check to see if you have SSH, but it requires you to have Git Bash in order to check
@sayalikotkar the instructions have been updated. Let me know if you are able to follow now.
Bonnie to talk to the 100 Automations team about making a automation out of this practice
Overview
We need to create a guide that shows how to use the Hack for LA GitHub template wiki to create a new wiki for your project's GitHub repository so that each project team can create a wiki for the project.
Action Items
Resources
To-do list
Examples of good wikis Design Systems Civic Tech Index wiki 100 Automations wiki