For this example, we're going to clone the Microsoft Visual Studio Code repo. It will only save to the Linux file system if you tell it to.Ĭloning from GitHub basically requires you to get a web address to feed into the Git client. WSL distros can also access the Windows filesystem so if you're using Linux on your Windows box, the same idea applies. Instead, you could install third-party softwares to do that, like Ext2Fsd, DiskInternals Linux Reader and so on. That is why you couldn't find the home directory of Ubuntu. So if you want to put it somewhere specific, find the right location in File Explorer then right-click and open in PowerShell/Windows Terminal. /home/ yourusername /) in Windows 10 is C:\Users\ yourusername \. When you clone the repo in the terminal, it will create your local folder inside whatever directory your command line is in at that point. Git is platform-agnostic, so you can learn it once and use it everywhere. Whether you're working within PowerShell using Git for Windows or you're inside WSL, the commands you need are the same. Cloning is essentially downloading, in so much as you point your local Git client at the destination on GitHub and it will pull the content down, creating a new directory on your local machine. Source: Windows Central (Image credit: Source: Windows Central)Ĭloning is one of the most basic functions of Git and one that you can use happily without getting in the weeds too much if all you're interested in is being able to pull content from GitHub.
0 Comments
Leave a Reply. |