Work with git on Windows 7 machine [duplicate] - linux

This question already has answers here:
Using Git on Windows
(5 answers)
Closed 5 years ago.
I have a Windows 7 machine, and I want to install git on it in order to do Rails development.
I've heard that it's better to work with git on Linux, so I installed Ubuntu. The problem with Ubuntu is that I have to restart the computer each time I want to switch between Windows and Linux.
Is that possible to run Ubuntu as Windows application (like any other program) ?
Could you recomend any other options ?
I want it to be installed on the hard drive rather than USB stick or something else.

msysgit on Windows is the standard for using Git on Windows, and now, it is almost as good as running git on Linux. For the learning phase, especially if you are moving from SVN and TortoiseSVN, use TortoiseGit. But git is best used ( and enjoyed!) from the command line. So try to use the command line and understand the git concepts.

Well, TortoiseGit has been working fine for me. It's a native Windows application, adding Git features to the Windows Explorer's context menu: https://tortoisegit.org/
Apart from the Windows app (if you want to keep running your 'nux stuff), VirtualBox offers something called the "seamless mode" which enables you to use programs running on your virtual machine kind of seamlessly on your native desktop without the hassle of the other OS around it.

Yes its possible. You can install Ubuntu on a virtual machine such as Vmware Workstation or Paralels Desktop or VirtualBox(free). The you can use it almost like an application. Or use msygit

Related

Git bash and x-win32 will work together for running linux applications remotely?

usually, school recommends using PuTTY with X-win32 to access and run linux software remotely on a window machine.
PuTTY is basically a tool to SSH into the linux machine from my understanding. Since I need to use github on my windows as well, git packages its own bash shell as a whole of git, so can it work with x-win32? I dont want to have two bash shell running just for convenience.
If it does, how to set it up? Anything different from setting up Putty?
Thanks!

Remote coding in linux from windows

I have a ubuntu machine in the same network with my windows laptop. I have a Pycharm Community Edition in my windows machine. I want to use the Pycharm in my windows machine to write Python Scripts which I want to run in Python interpreter present in Ubuntu machine. I am having difficulties installing Samba, as a linux newbie. I get the error that says samba.conf not present.Is there any other alternatives?
Don't bother with Samba. You can configure PyCharm to directly upload changed files to a remote server. I.e., when you save locally on your Windows workstation, it can automatically ftp/sftp the file to a pre-configured location on your remote server. See configuration instructions here:
https://www.jetbrains.com/pycharm/help/creating-a-remote-server-configuration.html
I used this when I set up my LAMP machine a few years ago:
https://www.howtoforge.com/ubuntu_debian_lamp_server

Shared folder between Windows host and Ubuntu guest, long filenames

I'm setting up an Ubuntu guest under Windows using VirtualBox for a colleague to provide him with a Linux-based development environment for a node.js application.
This colleague of mine can't or doesn't want to SSH into the VM and work in emacs or vim; he's a Sublime Text guy. So I have set up the project tree in a VirtualBox shared folder so he can access it from Windows (to edit) and the Linux VM (to build/test).
Unfortunately, npm install fails with file system errors. The problem seems to be extremely long path names resulting from deeply nested node_modules dependencies. I'm guessing we're hitting a Windows limit on filename length. The npm install works just fine in a regular (non-shared) directory in the VM.
Does anyone have ideas about how to deal with this problem? One idea I had was to somehow alias or link $MY_PROJECT/node_modules to another, non-shared location, but I can't figure out how to do that.
Update: I'm going to try this hack: https://www.virtualbox.org/ticket/11976.
Update 2: Ended up using samba, which is probably what I should have done in the first place.
One option is to use one of the multiple ways for sublime to edit remote files over ssh, covered in some detail here
How to use Sublime over SSH
Another is try using the native windows version of node and have your colleague develop locally directly under windows.

Windows 8 + Git + Composer + SSH

So, I've been using ubuntu linux for a few months and loved it for my web dev. Everything simply works!
But I switched back to windows because linux sadly doesn't run 90% of my apps :(
So now I have a question, how do you work with git, composer and ssh on windows?
Should I setup a linux virtualbox or is it possible to be able to work comfortably without it?
"TortoiseGit" is a nice extension if you prefer some graphical support, and this needs "msysgit" to give the git commands on windows - which also brings you "git bash" if you prefer the command line. "msysgit" could be installed standalone.
SSH under Windows is always Putty. Grab the newest release 0.63, it has security fixes. To work easily with git then, you need to setup the whole public key authentication with "pageant" running in the background. Putty does a bad job configuring it to convenient levels, you have to manually add it to autostart. Or you could either use KeePass with the KeeAgent plugin to get the same (I prefer it a lot: All authentication stuff in one location).
Executing composer is a question of having installed PHP >= 5.3. If PHP is installed, you execute the alternative install command (without curl) and are nearly ready to go. Having PHP and the composer.phar in the path or add their location to the path eases things a lot.
Caveat: I have no experience with Windows 8 so far, things might be different there. My suggestions are supposed to work on Win 7 at least.
The biggest drawback of Windows is that there is no decent shell support I'd like. Having a virtual machine still is a good idea, but you need your development tools within Windows as well.

Kdevelop in Windows XP

I received a src archive from a friend who develops Qt apps on Linux on Kdevelop IDE. Is it possible to load the Kdevelop project in Windows in some IDE ? Is there a Kdevelop port on Windows without Cygwin/Msys etc ? Are there any workarounds or I should I have to install Linux and take charge?
Update : I visited the page as mentioned in the below answer, but there's no Kdevelop package in the KdeWin installer . See here
KDevelop 4 will also be available on Windows (together with a lot of other KDE4 software). It is currently in beta, but you can download a Windows installer. The installer also lets you install other KDE4 software and should come with the QT development files you will need to develop QT applications.
AFAICT, there is no port to Windows of Kdevelop4 and Kdevelop3 was run with cygwin - which, IMHO, is not really a robust solution.
It would probably be easier, and better, to install a Linux distro in a virtual machine and go at it from there. If you don't need access to Windows, you could just install a Linux on a separate hardrive and/or partition.
Install linux on virtual machine such as vmware or virtual box.

Resources