Skip to content

Commit

Permalink
GitHub Backup: Update recommended repository settings (#394)
Browse files Browse the repository at this point in the history
Update the recommended repository settings to ensure an empty repo is
being created. Without this `git` will complain that the new repository
on the Raspberry Pi and in GitHub don't have a common base revision as
both have some content.
  • Loading branch information
mjonuschat authored Nov 25, 2023
1 parent e7e8a90 commit f1cfd62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions community/howto/EricZimmerman/BackupConfigToGithub.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ Experience is just a series of past mistakes we try to not make anymore. Remembe
1. If you plan on having more than one printer some day, use a repository name that is specific to that printer
2. Description is optional, but nice to have, especially for other people that may reference your config
3. Public or Private is up to you.
4. License is optional too, but best to specify something. I usually do MIT for all my stuff, but your mileage may vary
4. Select the following options under "Initialize this repository with":
1. Make sure "Add a README file" is unchecked.
2. Select "None" for .gitignore template.
3. Select "None" for the license.
The license is optional, but after your backup is working you should <a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository" target="_blank">add one</a>. I usually do MIT for all my stuff, but your mileage may vary.

![New repository details](images/backup/newRepoDetails.png)

Expand Down Expand Up @@ -181,7 +185,7 @@ We can now put the pieces together we have created so far. To make this easier,
4. If this is your first time setting up git on your printer you may need to set your user and email details for git to use later. *if you don't do it now it will prompt you later ;)*
```
```bash
git config --global user.email "[email protected]"
git config --global user.name "your name"
```
Expand Down
Binary file modified community/howto/EricZimmerman/images/backup/newRepoDetails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f1cfd62

Please sign in to comment.