Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| github-desktop [2021/11/03 06:59] – [Windows] amended atari | github-desktop [2023/04/27 02:37] (current) – [Make a pull request] update tip about new feature atari | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| Windows users should take some extra precautions when editing Linux-spawned files. NTFS, the default filesystem for Windows, does not support many features that the more modern filesystems Linux supports such as symlinks, file attributes (including the extremely important executable bit), etc. By default, Git will do its best to transparently convert file attributes to and from Windows-acceptable formats to the ones on the remote repository, but edits are not always possible (such as with two symlinked files). | Windows users should take some extra precautions when editing Linux-spawned files. NTFS, the default filesystem for Windows, does not support many features that the more modern filesystems Linux supports such as symlinks, file attributes (including the extremely important executable bit), etc. By default, Git will do its best to transparently convert file attributes to and from Windows-acceptable formats to the ones on the remote repository, but edits are not always possible (such as with two symlinked files). | ||
| - | Windows' | + | Windows' |
| + | |||
| + | {{: | ||
| + | |||
| + | Then also tell `git` to not automatically convert LF to CRLF by adding the following to your '' | ||
| + | |||
| + | < | ||
| + | [core] | ||
| + | autocrlf = input | ||
| + | </ | ||
| You can enable experimental symlink support within Windows by installing the [[https:// | You can enable experimental symlink support within Windows by installing the [[https:// | ||
| Line 38: | Line 47: | ||
| ==== Mac ==== | ==== Mac ==== | ||
| - | FIXME | + | Easy: |
| + | - Go to [[https:// | ||
| + | - Click " | ||
| + | - Double-click '' | ||
| + | - Follow the on-screen instructions | ||
| ==== Linux-based distributions ==== | ==== Linux-based distributions ==== | ||
| Github Desktop does not official support any Linux-based distributions, | Github Desktop does not official support any Linux-based distributions, | ||
| + | |||
| + | In the case that you are using a distribution that cannot install '' | ||
| + | |||
| + | <WRAP center round info> | ||
| + | On that note, since Github Desktop uses Electron, it doesn' | ||
| + | </ | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | On Solus, using the AppImage is recommended. Download it and mark it as executable. Installing Chrome (from the third party section in the software updater) is required to authenticate the sign-in. <wrap lo>You don't actually need to use Chrome itself to do the authentication, | ||
| + | </ | ||
| ===== Setting up Github Desktop ===== | ===== Setting up Github Desktop ===== | ||
| Line 53: | Line 76: | ||
| {{: | {{: | ||
| + | |||
| + | <WRAP center round help> | ||
| + | If having difficulty getting your browser to recognize the protocol (either due to weird permission issues or manual installation), | ||
| + | |||
| + | If it's still failing after that, it is possible to copy and paste a known-working configuration folder from another operating system into the one you are having the difficulties with. | ||
| + | |||
| + | * Windows config folder: '' | ||
| + | * Linux config folder: '' | ||
| + | |||
| + | Make sure GitHub Desktop is closed before doing this. | ||
| + | </ | ||
| ==== Fixing submodule downloading ==== | ==== Fixing submodule downloading ==== | ||
| - | Batocera makes ludicrous use of submodules to compile. You'll find that when attempting to make new branches, they' | + | Batocera makes ludicrous use of submodules to compile. You'll find that when attempting to make new branches, they' |
| < | < | ||
| Line 75: | Line 109: | ||
| {{: | {{: | ||
| - | If you've already forked the project, great! Just click it here and clone it, choosing to contribute to the parent project. Otherwise, click on **URL** at the top to switch to another screen. | + | If you've already forked the project, great! Just click it here and clone it, choosing to contribute to the parent project. |
| + | |||
| + | Otherwise, click on **URL** at the top to switch to another screen. | ||
| Enter the URL of the repository you want to clone. Here, I will be copying the [[https:// | Enter the URL of the repository you want to clone. Here, I will be copying the [[https:// | ||
| Line 84: | Line 120: | ||
| {{: | {{: | ||
| + | |||
| + | When asked what project you'd like to contribute to, select the one hosted by batocera.linux, | ||
| ==== Create a new branch ==== | ==== Create a new branch ==== | ||
| Line 106: | Line 144: | ||
| <WRAP center round info> | <WRAP center round info> | ||
| - | If you're cloning an already forked project, this step will not be necessary. | + | If you're cloning an already forked project, this step will not occur. |
| </ | </ | ||
| - | You'll then be asked how you'd like to use the project. Leave it on **To contribute to the parent project** and click **Continue**: | + | You'll then be asked how you'd like to use the project. Leave it on **To contribute to the parent project** |
| {{: | {{: | ||
| Line 133: | Line 171: | ||
| {{: | {{: | ||
| - | The commit is now save locally to your repository, but has yet to be pushed to your remote fork. Click on **Push origin** to do so: | + | The commit is now saved locally to your repository, but has yet to be pushed to your remote fork. Click on **Push origin** to do so: |
| {{: | {{: | ||
| Line 142: | Line 180: | ||
| {{: | {{: | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | New feature: Pull request changes can be previewed in Github Desktop before going to the web page to preview it. This can be useful, but it's not needed right now. Click the down arrow next to the **Preview Pull Request** to switch it back to **Create Pull Request**. | ||
| + | </ | ||
| Github is smart enough to automatically insert the title and description you entered for the commit you made earlier, but do note that this is only for the first commit you made. If you've made multiple commits, make sure to double check the fields here. | Github is smart enough to automatically insert the title and description you entered for the commit you made earlier, but do note that this is only for the first commit you made. If you've made multiple commits, make sure to double check the fields here. | ||
| Line 165: | Line 207: | ||
| ==== I messed up and need to change something ==== | ==== I messed up and need to change something ==== | ||
| - | Don't fret, you can still make changes to your pull request //as long as it hasn't been merged yet// (a draft pull request | + | Don't fret, you can still make changes to your pull request //as long as it hasn't been merged yet// (a draft pull request |
| - | If you've ended up making many commits, it is polite to " | + | If you've ended up making many commits, it is polite to " |
| To squash multiple commits into one: | To squash multiple commits into one: | ||
| Line 173: | Line 215: | ||
| - Click on **History** near the top left of the window | - Click on **History** near the top left of the window | ||
| - Select the commits you wish to squash (either by holding '' | - Select the commits you wish to squash (either by holding '' | ||
| - | - Right-click and select **Squash <#> commits** {{ : | + | - Right-click and select **Squash <#> commits** {{: |
| - | - Create a new title and description that includes all your changes {{ : | + | - Create a new title and description that includes all your changes\\ {{: |
| - | - Click **Force push origin** {{ : | + | - Click **Force push origin**\\ {{: |
| - | - Confirm the changes have been reflected in the pull request {{ : | + | - Confirm the changes have been reflected in the pull request\\ {{: |
| ==== Fetch upstream changes ==== | ==== Fetch upstream changes ==== | ||
| Line 188: | Line 230: | ||
| {{: | {{: | ||
| - | To repair this, there are two methods: | + | To repair this, there are multiple |
| + | |||
| + | === Just use batocera.linux' | ||
| + | |||
| + | This is the simplest solution, just use batocera.linux' | ||
| + | |||
| + | * Renaming the '' | ||
| + | * Deleting the '' | ||
| + | |||
| + | To do the latter, first be on a branch that isn't master, then right-click the local '' | ||
| - | === Quick and dirty === | + | === Merging/ |
| Similar to the command line procedure, we will merge directly from upstream. If you choose to use this method, this needs to be done every time you want to sync with upstream. | Similar to the command line procedure, we will merge directly from upstream. If you choose to use this method, this needs to be done every time you want to sync with upstream. | ||
| Line 196: | Line 247: | ||
| == Using Github Desktop == | == Using Github Desktop == | ||
| - | Merge the upstream/ | + | Merge the upstream/ |
| {{: | {{: | ||
| Line 204: | Line 255: | ||
| == Using Github webpages == | == Using Github webpages == | ||
| - | Navigate to '' | + | Navigate to '' |
| {{: | {{: | ||
| Line 216: | Line 267: | ||
| {{: | {{: | ||
| - | === Long and clean (permanent) | + | === Redirecting the local master branch header |
| Instead, you can edit the branch settings for your '' | Instead, you can edit the branch settings for your '' | ||
| Line 253: | Line 304: | ||
| ==== I can't sign in/ | ==== I can't sign in/ | ||
| - | Try resetting your username and authentication token by going to **File** -> **Options** -> **Accounts** -> **Sign Out**, then signing in again. | + | Try resetting your username and authentication token by going to **File** -> **Options** -> **Accounts** -> **Sign Out**, then signing in again. You may also need to explicitly sign out of Github on your web browser to get it to regenerate a new, valid token. |
| ==== Other/more complicated issues ==== | ==== Other/more complicated issues ==== | ||
- github-desktop.1635922762.txt.gz
- Last modified: 5 years ago
- by atari