• Where do you store your projects locally?
    39 replies, posted
I'm trying to plan out a system where I can keep all my projects (or more specifically, git projects) in one place while keeping the path to it as short and clean as possible. This is both for organization and because I'm working primarily with just Vim and the commandline. For context, this is a Windows machine, but I've been using WSL recently, so the paths are similar most of the time. Here are some places I've tried: The documents folder "C:/Users/<username>/Documents/" A folder in the root of a drive "C:/code/" The home folder in the Linux Subsystem "~/". I'm not 100% sure how the Linux home folder is supposed to be used, so I haven't tried it. Making a small partition exclusively for projects e.g. "G:/". This gives me the shortest path that I can think of and is also isolated from all other files on my computer, which is nice. I believe it's also possible in Linux to create another profile and control what files it can and cannot see in order to create a sort of "isolated space" for working with code, however I have no idea how to go about that.
I use "E:/Programming/" for all my own projects, and "E:/Programming/Other/" for all other projects/libraries I clone
My path setup is pretty simple, depending on the OS tho: * Windows: Jusing a HDD instead of a SSD, putting everything under E:/projects * Linux: Putting everything in ~/projects since I don't have a second HDD In WSL I created an alias for quickly going to my projects, sth like "alias projs=cd /mnt/e/projects". I also started lowercasing everything and using _ as a replacement for spaces, it makes navigating so much easier. I can also recommend "fzf" as a fuzzy finder to quickly locate your project directories and opening them quickly with your fav editor.
Kinda lost interest in programming for fun, but i would have another hdd and just put it there as D:\dev and then shared it on my vagrant box. or i'd just have a ~/dev folder on my home directory on my macbook if I dont feel like working on my desktop. and then linked that with vagrant box on the macbook. you should just create an alias so you don't have to worry about the path length. and then when u forget the path, u just type `pwd`
GitHub's default location is My Documents/GitHub/ so that's what I use.
At work I've got a separate partition just for all git repos
At work, we just use Linux VMs since they're easy to set up and it lets you keep all the dependencies off your PC. When working on larger projects and with larger teams, it's a pretty good solution to make sure everyone's dev environment is mostly homogeneous. Not to mention the Windows cmd prompt feels very gimped.
I just do ~/Documents/projects/ on my home computer On my work computer I will do ~/Documents/projects/<client_name>/<project_name>
I make web apps so I usually link my github repo to XAMPP's htdocs folder. D:\xampp\htdocs If I were to make anything else I would most likely do what the others have done and make a dedicated folder for them.
Three locations: D:\Scratch\Documents\Git C:\Users\Scratch\Appdata\Local\Temp\ C:\Users\Scratch\AppData\Roaming\Sublime Text 3\Local\Auto Save Session.sublime_session https://docs.microsoft.com/en-us/windows-server/storage/disk-management/assign-a-mount-point-folder-path-to-a-drive
The github client is garbage. If you prefer to use a GUI, use GitExtensions. (That's if you're on windows though. It's not cross platform)
Lazygit is a decent cross platform, terminal based interface for git https://github.com/jesseduffield/lazygit/raw/master/docs/resources/lazygit-example.gif
GitHub for public stuff I want to show off, BitBucket for private stuff
I don't get the hate against the github desktop client, it doesn't try to do everything and they are pretty clear with that. But what it does do works just fine for me and it satisfies like 90% of what I need git for. I'm actually happy that it doesn't try to do everything because trying to make a gui out of the more advanced commands would make it bloated as hell and ruin the UX.
Do you work with lots of branches? I find it very unintuitive to work with multiple branches. The UI just isn't intuitive. There's a number of things that I didn't like about it. But I swore off it so long ago without looking back.
Most of the complaints come from CL elitists. The desktop client is just like the rest of Windows: all the basic operations work and have a friendly interface... but if you need to do something advanced you use a CLI
I don't use branches as much as I should, my git workflow usually consists of doing a bunch of shit and then code review it in the github desktop client while also picking out specific lines/files to split the work up into sensible independent commits. Whenever I do any branch heavy operations (rebase etc) I just click into the git bash shell which takes two seconds with the gui and do whatever needs to be done. The latest update lets you see if a potential merge would cause any conflicts which I think is a very nice addition. I think you should try it again cause they've updated the branch portion of the gui last year/months.
Eh, I needed something that installed a functioning version of git and it seemed like the safest option. I don't really use the UI though.
Windows: %Documents%/Projects Linux: ~/Projects
~/proj However I feel this could be optimised better, since the first three characters are all typed with the pinky on my right hand. Not sure I want to call it dev though, as there are RTL and PCB projects as well as programming.
Same for Linux. Normally lowercase because I'm lazy. On Windows I usually use C:/Users/Ben/Projects rather than Documents/Projects though. I don't know why. Seems cleaner.
You type R with your right pinky? Are you on something other than QWERTY?
I type on UK QWERTY layout. I was including the ~/, since if I grab one of the random terminals I have open, it probably won't be in my homedir.
D:/Projects/Personal Personal becoming the folder to categorize the project as. Like Work, Study, Third-Party and Freelance.
All your folders in your library folders are mapped in the address bar lookup of explorer. Wheras your user directory is not https://tenryuu.blob.core.windows.net/astrid/2018/09/18-09-16_17-51-58.webm Directories take priority over executables, which is why this does not open git.exe Like I even have a shortcut on my desktop called Temp that goes to %TEMP% Means typing in Temp actually works
RIP headphone users
I use Window's libraries. I like that I can include multiple locations across different drives. https://files.facepunch.com/forum/upload/1262/8f6036cf-7ea1-45ee-92e1-dbd6ff053119/image.png
win: C:/Code or E:/Code mac/linux: ~/code/ pretty straightforward
I put my projects in E:\Projects<CurrentYear>\ My Projects2018 currently contains 59 separate folders inside and totals 8.3 gb in size
Secondary Follow up: the sublime team have released their first public build of Sublime merge today. They have removed the 'Press cancel button' for evaluation users, instead, you are locked into using the Light theme https://files.facepunch.com/forum/upload/1755/7066096a-23ca-4642-8714-dc17419a3aad/image.png https://www.sublimemerge.com/
Sorry, you need to Log In to post a reply to this thread.