How to add existing repository to source tree - user-interface

I have done the following:
1 - checked the Unity forum, 2 - Checked the atlassian website for guides and, 3 - checked the internet, 4 - Asked the aslassian team for updates.
Someone in the unity forum agrees that the guides are a bit old and only meant for mac users. I am a windows user and the guides there no longer matches whatever user interface windows users have. It can't be followed. Does anyone know how to use sourcetree? How to add my existing repository? You may download the latest version to see the user interface because I just downloaded it.

If you're on Windows, you need to make sure that a ".git" folder is already in the same folder. Beware that you might not be able to see it, depending on the settings in Windows. With the exception that nothing is damaged / corrupted, get the sourcetree browser button to point to that folder and it should be able to open.
Note: The requirements to check any of this would be to learn git and git bash and already have knowledge on how to get repositories to github.com. If you do not have this knowledge, it might be difficult to understand the purpose of the ".git" folder.

Related

How to download a project folder from sourcecode.apple.com?

If I'm looking at an Apple opensource page like this:
https://opensource.apple.com/source/Chess/
How can I download one of those projects to my hard drive so I can open it in XCode?
The main stumbling block for me is simply downloading one of the root folders (projects).
There is a similar existing question, but it is specific to the "wget" utility (this question is more general) and its best answer only suggests this official Apple OSS github repo, but that does NOT include all the projects contained within opensource.apple.com, for example, it only contains the most recent version of chess, not ANY of the previous ones.
So, on opensource.apple.com, I cannot:
Right-click and select download, because the folders are just links to more HTML, not directly to files.
FTP to the url, because I don't have an FTP app installed on my Mac, and even if I did, I don't know if the Apple site would accommodate this.
Download each and every file one-by-one, recreating the local folder structure manually... because that seems foolish.
And as stated, while it is trivial to download from the Apple OSS github page, it doesn't contain the code I need!
I Googled this and surprisingly can't find anything.
So, is there a way to easily download from sourcecode.apple.com?
It looks like that's an older interface to access the open source code.
I went to https://opensource.apple.com/, clicked on the View Releases button which takes you to https://opensource.apple.com/releases/. There you can browse the separate projects. For example, to get the latest version of Chess, click on macOS, then macOS 13.0, then find Chess-466.4.1. There should be a download link and/or a link to the project on Github.
For instance, all open source projects for macOS 13.0: https://github.com/apple-oss-distributions/distribution-macOS/tree/macos-130.

Git/Windows: Possible for Two Users to Share the Same Folder?

In my scenario, I have two people that do work on the same code base. Their only available workspace is a shared dev environment (where the files built are used to host the dev version of the site to boot). As such, they perform their work directly in that location. I've recently introduced source control to the project, and turned that location into a Git repository.
Let me preface by saying: Yes, I would love it if the dev host spot was a deploy-to spot, and these people had their own local copies of the source code. But that isn't feasible right now.
My question: Is it possible for two different Windows users/Git users (they have separate accounts that they can use to interact with GitHub/etc. with) to share the same folder? My hope would be that SourceTree (our weapon of choice) or Git, at least, wouldn't have a problem with this: Just show diffs of what's changed, and use the currently-logged-in user's information when making commits/other actions.
It looks like that while SourceTree has separate installation directories, it still embeds some account information in the .git folder itself. When I try to interact with Git (via a pull for example), it first tries to prompt for new credentials/etc., but shortly thereafter it says "please enter password for {other-user}" without an option to hop usernames.
It looks like we'll just have to do things the right way after all. Painful (for them) but no choice.

Xcode git commit fails on project stored in iCloud Drive

I just moved my Xcode projects to iCloud Drive to see if I could work on them across computers. So far, everything works perfectly… except git. I can't pull up the history and trying to commit gives me an error like this:
I've heard many people say that iCloud Drive is problematic and I should use GitHub, but I'm already paying for iCloud and literally all my other files are in there. That isn't to say I wouldn't be open to switching, but I'd like to know why these errors are occurring so I can make an informed decision.
Okay, I'm just spitballing here, but is there any chance it's looking for Asset.xcassets in the wrong Slidefari folder? I notice that your project folder is called Slidefari, and so is the parent of the Asset.xcassets folder.
It's been a while since I had to use XCode, and by "use" I mean "tear my hair out over," and I've only ever used GitHub for CVS, but maybe changing the name of the project folder will remove one variable? (And probably break your project BECAUSE SOFTWARE DESIGN, AMIRITE???)
Hope this helps!
Judging based on the fact that the repository works fine on the computer which it was created on, it sounds to me like some sort of git authentication issue.
It depends how your repository authenticates too. Many repo's have you generate an ssh key with keygen and submit that. I'm not 100% certain how that security works, but I'd venture to guess that the certificates and such involved are tied to your computer on a 1:1 basis.
I was thinking about moving my Xcode project to the iCloud drive but I'm concerned about the risks. I'd be curious to know if you found a solution. Thanks.

DropBox as Version Control and Offsite Backup

After reading Michael Lopp's book "Being Geek," I started using Dropbox as a means of synchronizing files between my home computer and work computer. It's been fantastic, it really makes it painless to keep track of the latest version of files you're working on.
My question has to do with people's experience with this tool, especially programmers who may have used it to develop larger projects.
Right now, I see 3 main uses of Dropbox:
1. synchronize files between home and work computers
2. version control (you have to log into the dropbox site to access previous versions)
3. off-site backup
Right now I'm using it as my main backup tool, which I'm not sure is a good idea. But right now I have a local (working) copy of my entire project "checked out" on each computer (my home laptop and my work computer), and additionally, my entire project is kept on the dropbox site. So I'm thinking, if anything happens to one of my computers, or both, I'll still have that off-site backup available and I'll simply have to reinstall dropbox to access all my files.
Does anyone have experience with doing this? Has anyone done a major file recovery using dropbox? Or is this even widely used? Thanks for your feedback in advance.
Using Dropbox to maintain several files and its associated metadata when those files are historized in a VCS is always a bit tricky because of potential corruption issue (if one of those metadata part of the repository isn't correctly synchronized, you can end up with a non_working repo)
That is why I always use with DropBox:
a DVCS (like Git): I can work directly in a working tree within a DropBox repo or I can clone said repo anywhere else outside the DropBox if I need to,
a single bundle file to which I can push at any time the changes from my local repo, wherever that repo might be.
That way, the only file that really need to be in sync in DropBox is that unique bundle file (representing a bare repo as one file).
See "Git with DropBox" for more.

TortoiseSVN: how to set up projects on a existing directory structure of source code

I have an old pet project I want to revive (haven't had enough time for it last year - small kid - you know) - so restored old copy of my dev folder from archive, but since I have rebuilt my machine since when - I can't remember what needs to be done now. I installed the latest version of TortoiseSVN, and the existing directory structure from my old dev machine looks like:
ProjectName
*SubProject1
**branches
***1.1
***1.2
**tags
**trunk
*SubProject2
**branches
**1.0.3
**1.0.4
**1.0.5
**tags
**trunk
I tried "import project" but it ask for a url - don't know what to specify there ...
can someone post a url to a good TortSVN tutorial - so I could set up my projects quickly (I guess I need to setup SubProject1 and SubProject2) - then I install AnkhSVN for VS2008
and will spend this Sunday coding like crazy while I still have some time ;-)
Rather than focusing on TortoiseSVN specifically, I would actually recommend that you review the SVN documentation first:
http://svnbook.red-bean.com/
A good understanding of what's going on behind the scenes is really helpful when using Tortoise, Ankh, or any other front end.
Getting to your question, the URL is the URL of your SVN repository, plus any subdirectories. An example could be
file:///C:/svn/trunk/ProjectName
if your repository were stored locally, or
http://my.repo.site/trunk/ProjectName
if it is hosted on the Web.
Just hit F1. TortoiseSVN has good built-in help docs.
The url it's asking for is the svn repo to import your project into.
The Url you refer to is likely the address of the project at the Subversion repository (wherever that is, since you didn't mention any). If you right click on your local directory and choose properties you should be able to see a subversion tab where you can find the address your project came from.
If you don't have the repository data, then I think the best thing to do is make sure to remove all the .svn folders from your project folders - good discussion here - and start anew with the files you have. This will mean you don't get all the history you had previously, but, lacking the repository, I don't think there's a way to recover anyway.
Then using whatever tools you'd like create a new repository somewhere, checkout the empty root, copy in all of your folders and then commit.

Resources