-
Notifications
You must be signed in to change notification settings - Fork 105
GitHub issues #408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
GitHub issues #408
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3682fd6
improved formatting
mrdavidorok bc4ab5d
assets added
mrdavidorok 6ddd798
updated content, improved formatting
mrdavidorok 6af36bc
Merge branch 'main' into david/github-issues
PoojaB26 40b18b5
updated
mrdavidorok b34d69d
Merge branch 'david/github-issues' of https://github.com/FlutterFlow/…
mrdavidorok 989e5e3
Merge branch 'main' into david/github-issues
PoojaB26 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"label": "GitHub" | ||
} |
55 changes: 55 additions & 0 deletions
55
docs/troubleshooting/ github-issues/initialize_github_repository.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
keywords: ['github', 'push', 'repository', 'initialize', 'error'] | ||
slug: /initialize-github-repository | ||
title: Initialize GitHub Repository | ||
--- | ||
|
||
# Initialize GitHub Repository | ||
|
||
When pushing code to GitHub, the following error may occur: | ||
|
||
```js | ||
Error pushing repository. Make sure your repository is initialized | ||
``` | ||
|
||
This typically happens if the GitHub repository was not initialized correctly or if the project exceeds GitHub’s file size limits. | ||
|
||
:::info[Prerequisites] | ||
- Access to your GitHub account. | ||
- A FlutterFlow project with GitHub integration enabled. | ||
::: | ||
|
||
Follow the steps below to initialize a GitHub repository: | ||
|
||
1. **Create a New Repository** | ||
|
||
- Go to **[GitHub](https://github.com/)** and click **New** to create a repository. | ||
- Enable the option **Add a README file** during creation. | ||
|
||
2. **Connect Repository to FlutterFlow** | ||
|
||
- Open your FlutterFlow project. | ||
- Navigate to **GitHub Integration** and follow the instructions to connect the new repository. | ||
|
||
 | ||
|
||
3. **Download and Inspect Your Project** | ||
|
||
- Download the full source code from FlutterFlow. | ||
- Navigate to the `assets` folder. | ||
- Identify any files larger than **25MB**. | ||
|
||
:::warning[Check Your Asset Size] | ||
GitHub does not allow individual files larger than 25MB. Large image or video files may cause push failures. | ||
::: | ||
|
||
|
||
:::tip[Tips to Reduce Project Size] | ||
- Use **network assets** instead of uploading large media files directly to FlutterFlow. | ||
- Optimize images using tools like TinyPNG or ImageOptim before uploading. | ||
::: | ||
|
||
:::info[Additional Resources] | ||
- **[GitHub FlutterFlow Integration Guide](/flutterflow-ui/toolbar/#developer-menu)** | ||
- **[State Management](/concepts/state-management/)** | ||
::: |
56 changes: 56 additions & 0 deletions
56
docs/troubleshooting/ github-issues/repository_head_deployment_failure.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
keywords: ['deployment', 'github', 'repository', 'codemagic'] | ||
slug: /repository-head-deployment-failure | ||
title: Repository Head Deployment Failure | ||
--- | ||
|
||
# Repository Head Deployment Failure | ||
|
||
This error may occur when deploying your FlutterFlow app to GitHub using Codemagic. The message `Failed to set the repository head` indicates a problem with repository access, configuration, or connectivity. | ||
|
||
:::info[Prerequisites] | ||
- A connected GitHub repository with appropriate access permissions. | ||
- GitHub deployment enabled within FlutterFlow. | ||
::: | ||
|
||
**The Error Message** | ||
|
||
```js | ||
Failed to set the repository head | ||
``` | ||
This message typically appears in the build log during deployment. | ||
|
||
Below are the possible causes of this error: | ||
|
||
- The GitHub repository does not exist or was deleted. | ||
- The branch specified in build settings does not exist. | ||
- Insufficient permissions to push or write to the branch. | ||
- GitHub API or network connectivity issues. | ||
- Local build errors in the codebase. | ||
|
||
**Steps to Fix the Deployment Error:** | ||
|
||
1. **Confirm the Repository Name** | ||
|
||
Ensure the repository name in your FlutterFlow deployment settings exactly matches the name in GitHub. | ||
|
||
2. **Verify the Branch** | ||
|
||
Check that the branch exists in the repository and is correctly specified in your build settings. Avoid typos or casing mismatches. | ||
|
||
3. **Review Repository Permissions** | ||
|
||
Confirm that your GitHub account or connected GitHub App has push/write access to the repository and branch. | ||
|
||
4. **Check Network Access** | ||
|
||
Make sure your environment is not blocking GitHub via VPN, firewall, or DNS restrictions. | ||
|
||
5. **Validate the Codebase Locally** | ||
|
||
Run the downloaded Flutter project locally to confirm that it builds without errors. | ||
|
||
:::info[Additional Resources] | ||
- **[GitHub Deployment Overview](/deployment/deploy-from-github/#steps-to-deploy)** | ||
- **[Codemagic Error Identification Guide](/codemagic-deployment-error-identification/)** | ||
::: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.