In my project folder i have a folder called appnameappversion ie: Facebook1.03 Inside the folder is .ipa file of the app. It is over 100mb and is the reason my project will not upload to github. Any help would be appreciated.
UPDATE: I have followed this tutorial and added the standard swift gitignore, however i am still getting the error that the .ipa file is too large
here is my gitignore
# Created by https://www.gitignore.io/api/swift,macos
### macOS ###
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Build generated
build/
DerivedData/
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint
## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
## Playgrounds
timeline.xctimeline
playground.xcworkspace
# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
.build/
# CocoaPods - Refactored to standalone file
# Carthage - Refactored to standalone file
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
# End of https://www.gitignore.io/api/swift,macos
UPDATE 2 : I have tried some of the solutions here, however when I push i still get the same issue of the .ipa file being too large
This looks like the large .ipa file is already part of your local index. Remove it using git rm --cached [file].
Related
I am using OpenProject as project management software and I am not very familiar with ruby and rails, but using the gitolite-plugin works quite well.
I am looking for a solution to provide a link to the OpenProject users where they can directly download the gitolite-hosted repository as a zipfile.
Is that possible ?
I am willing to put pieces of code together, so even partially solutions and hints are welcome.
thx.
Nothing in oliverguenther/openproject-revisions_git would do a :
git bundle (full repo history in one file)
git archive (latest working tree as one zip file)
You would need to extend that plugin in order to expose that feature, implementing a ruby function to call git-archive on the right project, a bit like in this gist:
(extract)
# Runs the `git archive` command to pull your repository out
# into a tar or tar.gz and writes it to a temporary directory
#
# Args:
# * path - path within the repository to archive, defaults to the root
#
# Returns the path to the tar file
def archive(path=nil)
#archive_path = path || ''
create_tmp_directory
#tar_path = "#{#tmp_directory_path}/archive.tar#{#gzip}"
Dir.chdir #path
puts "Archived repository" if run_shell_cmd "git archive --prefix=#{#archive_path}/ #{#branch}:#{#archive_path} -o #{#tar_path}" and #verbose
Dir.chdir #pwd
#tar_path
end
I have MVC project which was already on git or in git whatever i don't know. Than i formatted my PC and than again install Git. but I don't know How actually it works. i gone through many tutorials and blogs but it is not happening.
As my project was already in GIT. so i have .git folder in my Project. and also have .gitignore file.
which have following data:
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
x64/
build/
bld/
[Bb]in/
[Oo]bj/
# Roslyn cache directories
*.ide/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
#NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding addin-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
_NCrunch_*
.*crunch*.local.xml
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
## TODO: Comment the next line if you want to checkin your
## web deploy settings but do note that will include unencrypted
## passwords
#*.pubxml
# NuGet Packages Directory
packages/*
## TODO: If the tool you use requires repositories.config
## uncomment the next line
#!packages/repositories.config
# Enable "build/" folder in the NuGet Packages folder since
# NuGet packages use it for MSBuild targets.
# This line needs to be after the ignore of the build folder
# (and the packages folder if the line above has been uncommented)
!packages/build/
# Windows Azure Build Output
csx/
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
# LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
/Marketplace/DesignTemplates/NC Tourism Beta/extractedfiles/backend/
/Marketplace/DesignTemplates/NC Tourism Beta/prod/backend/
*.bak
*.png
*.db
*.jpg
My project folder resides in F:/MarketPlace/MarketPlace path.
And I written following Commands in GItBash..
Sadhana#Viprak-Sadhana MINGW64 ~
$ cd..
bash: cd..: command not found
Sadhana#Viprak-Sadhana MINGW64 ~
$ git init
Initialized empty Git repository in C:/Users/Sadhana/.git/
Sadhana#Viprak-Sadhana MINGW64 ~ (master)
$ .gitignore
bash: .gitignore: command not found
Sadhana#Viprak-Sadhana MINGW64 ~ (master)
$ cd C:Users/sadhana/.git
Sadhana#Viprak-Sadhana MINGW64 /c/Users/sadhana/.git (GIT_DIR!)
$ git init --bare marketplace.git
Initialized empty Git repository in C:/Users/Sadhana/.git/marketplace.git/
Sadhana#Viprak-Sadhana MINGW64 /c/Users/sadhana/.git (GIT_DIR!)
$ .gitignore
bash: .gitignore: command not found
Now what should i do for my project to be run.
If your .git folder is usable, you should see the name of the branch in git bash upon changing your directory to the folder where .git is located. You should not need to execute the 'git init' command, since this will create a new .git folder. It sounds like what you want to do is recover the existing repository, so we need to determine if your previous .git folder contains anything valuable.
Also, .gitignore is the file where you can specify files that should not be included in changesets.
Try navigating to 'C:Users/sadhana/' and see if git bash picks up on the repository in the .git folder. You'll see the name of the branch if it goes well :)
I am currently trying iOS developing on my own and my project has now become quite large, so i want to git push to github just in case i screw up.
However, as i tried to git push, it always gives this
"large files are detected, File Pods/nighthawk-webrtc/lib/libWebRTC-8444-arm-intel-Release.a is 118.31 MB; this exceeds GitHub's file size limit of 100.00 MB"..
It is the local "nighthawk-webrtc-8444.podspec" that i have causes the problem.
I sort of thought it may have to do with the .gitignore file, because i include the PODS for push, so i have my .gitignore written as this
# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout
#CocoaPods
Pods
to exclude the Pods library. However it doesn't work. It still trying to git push the entire local nighthawk-webrtc-library to github and i still end up with the same error.
This nighthawk-webrtc-library is a pod spec created by a third part, when i run pod spec lint, it gives me the following validation errors:
-> nighthawk-webrtc (8444)
- ERROR | The name of the spec should match the name of the file.
- WARN | There was a problem validating the URL www.perch.co.
which i do not have idea whether it has anything to do with git push, but even if it has, i can't seem to edit it.
To be just clear: I wish to git push the local pod spec to the github, but i do not wish to git push the entire library like what the system is currently doing. Anyway to fix this?
Thanks a lot.
Although the files are git ignored, I'd bet you a dollar that you need to remove them from the local git, and them commit AND push that. Ignore changes are NOT RETRO-ACTIVE, i.e. if a file was added you need to remove it.
Drop to a shell and type:
git rm <FILE(S)>
OR use SourceTree/Tower or whatever you prefer
I created a new app and the Dart Editor (M4) created a slew of files and folders. Now I'm not sure which I can safely put in the gitignore. Here's the tree:
app/.buildlog
app/build.dart
app/packages/analyzer_experimental
app/packages/args
app/packages/browser
app/packages/csslib
app/packages/html5lib
app/packages/js
app/packages/logging
app/packages/meta
app/packages/pathos
app/packages/source_maps
app/packages/unittest
app/packages/web_ui
app/pubspec.lock
app/pubspec.yaml
app/web/app.css
app/web/app.dart
app/web/app.html
app/web/out/app.css
app/web/out/app.dart
app/web/out/app.dart.map
app/web/out/app.html
app/web/out/app.html_bootstrap.dart
app/web/out/packages
app/web/out/xclickcounter.dart
app/web/out/xclickcounter.dart.map
app/web/packages
app/web/xclickcounter.dart
app/web/xclickcounter.html
I assume the following files can be ignored:
app/.buildlog
app/packages/*
app/web/out/*
app/web/packages
Is that correct?
From What Not to Commit on dartlang.org:
# files and directories created by pub
.dart_tool/
.packages
.pub/
build/
pubspec.lock # Except for application packages
# API documentation directory created by dartdoc
doc/api/
# files and directories created by other development environments
*.iml # IntelliJ
*.ipr # IntelliJ
*.iws # IntelliJ
.idea/ # IntelliJ
.DS_Store # Mac
# generated JavaScript files
*.dart.js
*.info.json # Produced by the --dump-info flag.
*.js # When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js_
*.js.deps
*.js.map
Don’t commit the following files and directories created by pub, Dart Editor, and dart2js:
packages/
pubspec.lock // Except for application packages
.project
.buildlog
*.js_
*.js.deps
*.js.map
Don’t commit files and directories dropped by other development environments. For example:
.project // Eclipse
*.iml // IntelliJ
*.ipr // IntelliJ
*.iws // IntelliJ
.idea/ // IntelliJ
.DS_Store // Mac
Avoid committing generated JavaScript files:
*.dart.js
For more details, read https://www.dartlang.org/tools/private-files.html.
Dart default
.packages # mapping file from package names to local path
packages # until `--no-package-symlinks` is the default
build/ # contains the output of `pub build`
.pubspec.lock # controversial - Dart guideline is to only commit
# for applications but not for packages
.pub/ # cache files generated by `pub`
# .pub was moved to .dart_tool/.pub
build The new https://github.com/dart-lang/build package introduces a
.dart_tool/
directory which should be excluded.
When it comes to generated files it is generally best to not submit them to source control, but a specific Builder may provide a recommendation otherwise.
IDE
.idea # IntelliJ, WebStorm
bazel
/bazel-*
.bazelify
packages.bzl
BUILD
WORKSPACE
See also
https://github.com/github/gitignore/blob/master/Dart.gitignore
https://www.dartlang.org/guides/libraries/private-files
An up to date sample Dart .gitignore is available in the gitignore repo on Github:
https://github.com/github/gitignore/blob/master/Dart.gitignore
Note that this does not contain IDE or editor files, just Dart files. You can find IDE and editor .gitignores in the same repo.
I include doc/api in my .gitignore. I tend to write substantial documentation comments and I like to use dartdoc to generate the documentation for review.
Anyone know of good articles for setting up a new project with git and ASP.NET MVC?
Just wondering what to include and ignore and what to do about deployment.
Gitignore
You asked about what to ignore -- here is my default .gitignore for ASP.NET MVC projects:
###################
# compiled source #
###################
*.com
*.class
*.dll
*.exe
*.pdb
*.dll.config
*.cache
*.suo
# Include dlls if they’re in the NuGet packages directory
!/packages/*/lib/*.dll
!/packages/*/lib/*/*.dll
# Include dlls if they're in the CommonReferences directory
!*CommonReferences/*.dll
####################
# VS Upgrade stuff #
####################
UpgradeLog.XML
_UpgradeReport_Files/
###############
# Directories #
###############
bin/
obj/
TestResults/
###################
# Web publish log #
###################
*.Publish.xml
#############
# Resharper #
#############
/_ReSharper.*
*.ReSharper.*
############
# Packages #
############
# it’s better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
######################
# Logs and databases #
######################
*.log
*.sqlite
# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db
Setting up a new project
For help on setting up a new project, I would install msysgit since you're most likely on Windows and check out learn.github to learn about getting started with git.
Of course, the master (Skeet) suggests you do most everything from the console -- and I tend to agree with him. Git is just easier that way IMHO. If you'd like a handy git reference, check out the git reference.
Deployments
As somebody else already mentioned -- check out AppHarbor for deployments. Those guys aim to be the 'Heroku of ASP.NET'.
There is a great post on codebetter.com today. It is about OSS projects but I bet it is applicable to you as well because it is describing GIT.
The right part of the article is the link to Kyle's blog and especially Getting Started with Git and GitHub on Windows.
If you're already using git and ASP MVC you should also check out AppHarbor http://appharbor.com/ for deployment and hosting. It integrates right into your workflow.
Corrected link
http://codebetter.com/blogs/aaron.jensen/archive/2009/03/12/hosting-your-oss-project-on-github.aspx
Mine is super simple:
*/packages/*
/packages/*
obj/
bin/
TestResults/
_ReSharper.*
*.csproj.user
*.resharper.user
*.resharper
*.suo
*.cache
*~
*.swp
*.resharper.user
*.rptproj.user
*.db
*.sdf
*.tmp
For the example of gitignore files check github gitignore examples and one for visual studio VisualStudio.gitignore