I am facing some issues while importing files to my project. When I import these files which are already linked to another repository it contains the references of old repository and I am unable to Commit/Add these files to new repository. I tried other solution like searching for .svn files in the folder and deleting them and also through command line tool but i am not able to remove the references of old repository.
Please suggest some solution for this.
Thanks
I think you can check out this answer in superuser, from my personal experience this is the only way of doing it. Here is the link to the answer:
https://superuser.com/questions/388020/how-to-use-terminal-to-delete-all-svn-folders-recursively
The only way that I know is to delete all .svn files from ALL sub-directories. Maybe you can create/find a script for doing this job.
In any case, if there is a better way to import the project linked to another repository, I would be happy know as well.
Related
I am using Github desktop to source control my app, but it keeps changing/deleting/adding all sorts of files that I did not touch, assets, pod files, and I do not know what is going on or how to stop it. Any help here?
I re-cloned my repo and still having the issue
They are build artefacts, Pods, and other things you should've excluded from your repo. Use gitignore.io to create a proper .gitignore file, and add it to root folder of your repo (e.g. like this). Then delete all this junk from your repo.
I also recommend reading Apple's guide on working with Source Control
The issue is with iCloud sync, try turning that off
like sfgblackwarkrts already said these "random" files are artefacts, pods etc.
They will be created everytime you made any changes in one of them E.g. updating your pods, changing packages,..
To see how a .gitignore file can be created and managed, you can find a question and the correct answers to it on Stackoverflow.
git - how to create a .gitignore file
After screwing up with our server, we somehow fixed our project in Jira. But we've lost newest issues and some settings.
We now have files of this issues (folder with issue number->thumbs folder with attachments and two files of unknown extension)
I've searched how to convert these files into CSV in order to import it via Jira itself, but couldn't find anything yet.
Maybe there is someone who can help me?
Nvm, it was a folder with only attachment files. Nothing about issue itself.
Is there some easy way to rename Swift Package?
I tried some standard ways but there wasn't result in finding quickly solution
Please help me, thanks in advance
Sorry guys i put it badly.
more description:
I have created SP in the my workspace a some time ago and now there are a lot links (imports of this package) around all project and now I want to rename this package. Special tool not avalible for this and i was looking some ather way to avoing a lot of routine work
Go into your Package.swift file and change any instance of your old name to your new name. Hit save, then your xcode project should update itself.
Sadly it doesn't look like there's a good way to do this, and when it's come up I've ended up making a new package with the correct name, moving all the code into it, and updating references to the old package to point to the new one.
Unfortunately I only found a manual way to do it.
These are the steps that I did to change OldName to NewName:
To change the package name that shown on Xcode, you can rename the root folder on your Finder
If your project are currently open, A popup will appear, you can just close the xcode.
Then you can re-open your package.swift file again.
Last, Rename the folder inside your Sources and Tests folder to the
new name. Also adjust your file name too.
I just renamed my package, which was easier than expected. As previously described, you have to do it manually.
Open your package in Xcode (not in a project)
Open the package.swift file and change the name everywhere
In your Sources folder is another folder with your package's name, rename that, too
If you don't use Git, that's pretty much it. If you do, you can commit your files (which will be a lot, because you renamed a parent folder) and change your repository's name. You probably have to clone it again, so there won't be any errors in the future.
After everything is renamed, you need to update your project(s). If you added your package locally, just search for all the import statements and change the name to your package's new name. If you added it via Github, remove the package dependency, add it again and then search for all the import statements and update them accordingly.
I have studied https://blog.bazel.build/2017/02/27/protocol-buffers.html . The project I want to hack on is written in Go. At the moment, if I run the build command I can see the compiled binary but I don't see the *.pb.go files anywhere. I want to keep the generated *.pb.go files in the same folder where *.proto files are so that my IDE (Intellij Goland) can find and index them.
Can you please help me how to get this working? If you can show me how to do that for the github.com/cgrushko/proto_library project, I should be able to try that in my particular project.
Bazel will not output generated files (such as .pb.go) into the source tree. They go into the output directories (bazel-out/<config> or bazel-genfiles/<config>). Temporary solution might be to add those as source roots to goland. The real solution is to use https://ij.bazel.build/. It has some Go support, and the team is actively working on improving it.
What's the best way to backup a project?
To be more specific: I have a DropBox account and I prefer to have a copy of the project over there.
I assume I should copy all the h+m files.
Can I copy all the xib files? does it make any sense?
Can/Should I copy all the jpg/png/mp3 files that I use for resources?
Is there a proper way to do that, like a "backup project" button where I can select the target and it compresses the project in some smart way?
You need all of those and the project files, etc. Look in the project file to see all files referenced. Check to see if you have everything by making a copy and trying to build from the copy. You'll get complaints if you missed any thing.
The best way to backup a project is source control. There are many options available to get free or very cheap remote source control repositories where you can store a copy (and history) of your source. Checkout http://www.beanstalkapp.com or http://www.github.com for a start.
Best thing is to copy the entire directory where all your project exists. Copy this directory to your dropbox folder. To open the project open yourproject.xcodeproj with xcode.
Although this method is okay for one time thing or when you are the only one working on your project but in the long run you should look at trying to adopt a source control versioning system like GIT. Xcode has wonderful integration with GIT.
Hope this helps...