Git installation in USB Drive that works in both OSX and windows? - macos

I work with git in my laptop computer (a mac) but sometimes have to use my code in a desktop machine (windows) to which I have no administrator access and which is also not connected to the internet due to security reasons.
I want to use git in that machine as well, but the IT personnel at my workplace has told me that it is not possible to install it in that particular computer room.
I have seen this thread about portable GIT (How to install Github on USB Drive?), but it seems to work only on Windows. Is there any way to make it work in both windows and mac?
I have seen threads here about how to use USB as a portable repository by starting a bare repo and cloning the contents to the other machine. I have also thought about cloning that same repo to the USB from my remote. All these solutions are not feasible because that desktop machine I want to work with has no git installed and I can't commit or do any git operation when there.
Is there any way I can have a git installation in my USB and have it working both in my laptop and in that work desktop? Can it work between two different OSs (Mac and Windows)?
Thank you for your appreciation.

Use a normal git repo on the usb drive.
Use UTF-8 as encoding for all the files to make sure that you won't get any problems with that
Before you go to your windows machine, make sure that you have checked out the branch that you want to work on.
Use the checked out files and work with them.
Back at your mac, you can commit and push and do whatever you like.
OR
Use your smartphone as usb drive. If you have Android, you can install botbrew on it and use git on your mobile. With that you can do your git operations while at your windows pc.

Related

TortoiseSVN - no overlay icons in a VM with Windows 10 on a shared Mac folder

I have a MacBook Pro with OS 10.11.5 and Vmware Fusion 8.1.1 is installed.
In Fusion I have a Windows 10 (64 Bit, Ent.) running, where I have a (vmware) shared folder from the Mac OS.
This shared folder contains a Subversion Repository which is on the Mac in an encrypted Volume (a TrueCrypt-Volume mounted with VeraCrypt).
To see these handy overlay icons in Windows (if files changed etc.) I installed TortoiseSVN (64 bit, 1.9.4), but no Overlay Icons are visible in W10.
I tried the solutions in: TortoiseSVN icons overlay not showing after updating to Windows 10 but all the hints there didn't help.
I think the issue is related to Fusion's shared folder, because local repos do show overlay icons in W10.
I activated all drive checkboxes in TortoiseSVN settings but nothing changed.
I know that it is not a good idea to share a repo through different OS: SVN control of a shared virtual machine folder
but I don't want to do any commit stuff (anymore) in Windows, I just want to see the overlay icons, which are missing in Mac's OS X subversion.
And even with TortoiseSVN installed, I can commit files on the Mac without errors, if I just never touch the commit or checkout functions in W10-TortoiseSVN.
Is there anything else, I can do to see these useful overlay icons?
Thanks
frank
TortoiseSVN does not show status icons for working copies located on network shares, by default. Read the FAQ | Why are the icons only visible on local and not on network drives?.
And don't confuse Subversion working copy with a repository.

how to install SVN tortoise repository in MAC Machine?

How to install and use "SVN" tortoise Repository into mac machine. I am new in it and I don't know from where to start.
Sorry tortoisesvn is not available for the mac at the moment. I checked their forums and I don't see a request for it, so you may want to place it?
http://tortoisesvn.tigris.org/ds/viewForumSummary.do
Some people have got it somewhat working with wine/crossover
http://verysimple.com/2009/01/06/tortoisesvn-for-apple-osx/
(link is dead) https://superuser.com/questions/58225/tortoisesvn-for-mac (link is dead)
Alternatives
Some people use SVNX
https://code.google.com/p/svnx/downloads/list
Some people use scplugin
http://scplugin.tigris.org/
versions
http://versionsapp.com/
I have not tried these however. Any form of subversion for mac should work just as well.
If you just need source control there is also git for mac
http://git-scm.com/download/mac

Is there a setting with git to allow a clone to use http on one OS and ssh on another?

Short Question
Is there a setting with git to allow a clone to use http on one OS and ssh on another? For an exact usage: Is possible to use http protocol (cloned in Windows) on Mac OS X terminal which typically uses SSH connections
Background
I have a Macbook Pro that I dual boot with Mac OS X and Windows 7. I have a shared express-34 card that I store all of my repositories / working directories on. I use this so I can work from the Mac side or Windows side seamlessly (until now). At this point, I am unable to commit / update any changes from repositories I clone / checkout from Windows. It's worth noting that git repos that I clone from Mac, work fine in Windows, just not the other way around.
System Information
Windows 7:
Tortoise git and Tortoise SVN
OS X:
homebrew installed git and SVN
Update
I am now sharing a single SSH checkout (at the project level) on both Mac OS X Lion and Windows 7. This is working when I am booted natively into Win 7 as well as when it is virtualized inside of Lion.
If I understand what you're asking I don't think this is possible using the same remote name. A particular remote is always defined by a URL which specifies the protocol. However you can add a new remote with a different URL which species a different protocol.
A problem with doing this is that you'll have the same remote with two different names in the same repository. This means that all remote branches (origin/master etc.) will be duplicated and will get out of sync which will cause problems with any git behavior that depends on branch names instead of SHA hashes.
For example, suppose you have a remote named 'windows' that specifies http and a remote name 'mac' which specifies ssh. Suppose your repository gets behind your remote you update in OSX using git fetch/merge now mac/master is up to date but windows/master is not. This may not be a big deal to you but it does mean tracking branches and other branch name dependent behavior may not work as you expect.

Mercurial central repository LAN ghost folder?

I'm working on setting up version control on a company LAN using the setup described in this tutorial
The central repository is located on a Mac OS, with the developers running either Windows or Mac OS. Pushing and pulling from the central repository to a local repository on both Windows and Mac OS works.
What I can't understand is that the central repository folder appears duplicated in Windows Explorer ('CentralRepo' and 'CentralRepo-1'), yet when logged in as admin on the Mac OS hosting the central repository, this folder cannot be located. The duplicated folder can only be seen on one particular Windows computer.
Is it a temp folder? Is there anything that can be done to remove this duplicated folder?
I don't think this has anything to do with Mercurial. It's just some Windows or Samba screwiness. Because of the nature of a DVCS, you should never need to use Explorer to view the remote repo, so just ignore it.

Sync Eclipse project between Linux and a windows computers

My situation is like this:
I got a windows computer and a Linux computer , and an Eclipse project I'd like to sync between them. What is the best way to do this ?
Thanks in advance
Use a version control system, such as git or Subversion.
This is how we do it:
We have a linux file server running Samba (this allows Windows boxes to connect to it), install a CVS server, point your Eclipse installations at your CVS directory.
Can't offer much more info than that, but I think an CVS / file server based on Linux (we use Ubuntu) and samba is the best option.

Resources