티스토리 뷰
그 외
[Git] Large files detected. Failed to push a reference to git. - .gitignore is not working properly.
Agrafenaaa 2023. 1. 3. 19:05<ISSUE>
I couldn't push my local branch to the existing remote branch due to the errors warning of maximum file size, but the warned files have already been specified not to upload in .gitignore.
<SOLUTION>
😂 Please note that none of the solutions below managed to sort a git issue out.
- "flutter clean" and repush.
- Create a new branch and push it.
- "git rm -rf --cached ." and readd "git add .".
- upgrade flutter version.
The only way that really worked was the following:
1) Check status and pay attention to the qty of commits in the output.
git status
On dev master
Your branch is ahead of 'origin/dev' by 5 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
2) Reset the commits.
#the number should be the identical to the output above.
git reset HEAD~5
3) Recheck status and make sure that there is not comment "by x commits", then add and repush it.
'그 외' 카테고리의 다른 글
[Git] - git@github.com: Permission denied (publickey). (0) | 2023.01.04 |
---|---|
Mac Terminal 한글 깨짐 (0) | 2022.09.19 |
EACCES: permission denied, unlink '/usr/local/bin/code' (code . command in MacOS) (0) | 2022.08.03 |
Ruby/Rbenv for Jekyll Github Blog (MacOS) (0) | 2022.06.15 |
VSCode is not showing iOS emulator + autosuggestion code preference for Mac (0) | 2022.06.14 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- FlutterWirelessDebuginAOS
- KotlinFlow
- retrofit_toJson()_error
- flutter_android_app_links
- Kotlin
- querydslKotlinError
- retrofit_generator
- dagger-hilt
- Android
- retrofit_generator_conflicts_with_freezed
- FirebaseConfigurationForMultipleBuildTypes
- RunAFlutterProjectIniPhoneFromVSCode
- MultipleFirebaseEnvironments
- Laravel
- android_app_links_domain
- AndroidWirelessDebug
- futter_api
- mvvm
- querydsl5.0.0jakarta
- android_app_link_domain_works_with_adb_but_not_works_with_browser
- unsplashAPI
- querydslQclass
- phplaravel
- flutter_storage_not_working_for_the_first_time
- flutter_secure_storage_issue_iOS
- laravel9
- android_domain
- android_app_links
- flutter
- WirelessDebug
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함