-
-
Notifications
You must be signed in to change notification settings - Fork 39
How to create a custom resource repository in GitHub
Oliver Tseng edited this page Jul 30, 2022
·
13 revisions
- Create a blank repository in GitHub
- Create a local repository
- Upload data from local repository to GitHub repository
Prerequisites:
Naming convention:
- Name your repo as UBA-type-description, where type can be Bibles, Books, Commentaries, Devotionals, PDF, DOCX, MP3, MP4.
- Examples: UBA-PDF-Ancient-Israel-History, UBA-Books-My-personal-sermons, UBA-Commentaries-Foreign-langages, UBA-MP3-Worship-Music
-
If you don't have a GitHub account, create an account
-
In the top right, select the "+" button and select "New Repository"
-
Fill out the data
- Enter Repository name using above naming convention
- Add optional description
- Select "Public"
- Select "Creative Commons" license
- Clone the repo from GitHub
You can get the url to clone from the main page of your repo and click on the green "Code" button.
git git@github.com:otseng/UBA-PDF-Ancient-Israel-History.git
-
Copy all your files into the directory
-
Zip each file and remove the original files so only zip files are in the directory
-
Initialize the local repo
git init
- Add all the files into the local repo
git add .
- Commit the files into the local repo
git commit -m "Add files"
- Run git push
git push -u origin main
- Go to your repo in your browser and verify all the files are there.
If you do not wish all UBA users to be able to access your repository, you can make your repository private. But, in order for you to access it, you will need to setup a personal access token.