プロジェクトごとのディレクトリをどこに置くか
from 2023/11/22
プロジェクトごとのディレクトリをどこに置くかyosider.icon
例えばgit cloneしてきたものをどこに置くか
ホームディレクトリの下に"works"みたいなディレクトリを作り、その中に入れているが、いまいちイケてない気もする
GitHubに関してはghqが良いらしい(が、元々の管理法があるので使ってない・・)inajob.icon
x-motemen/ghq: Remote repository management made easy
'ghq' provides a way to organize remote repository clones, like go get does. When you clone a remote repository by ghq get, ghq makes a directory under a specific root directory (by default ~/ghq) using the remote repository URL’s host and path.
code:sh
$ ghq get https://github.com/x-motemen/ghq
# Runs git clone https://github.com/x-motemen/ghq ~/ghq/github.com/x-motemen/ghq
You can also list local repositories (ghq list).
置き場所を気にしなくてよくなる的なものなんだろうかyosider.icon
その理解ですinajob.icon
使ってる。そう基素.iconmeganii.iconjuneboku.icon
配置場所に悩まなくてもよいのは地味だけど嬉しいmeganii.icon
pecoと組み合わせると便利とかも聞いたinajob.icon
https://github.com/Songmu/ghq-handbook/blob/master/ja/05-command-list.md
ghq-handbook
GitHub - peco/peco: Simplistic interactive filtering tool
https://camo.githubusercontent.com/408012d1ba2bb7fed65910a04919696fd58acc7acb31d9b05b7681d151ed2475/687474703a2f2f7065636f2e6769746875622e696f2f696d616765732f7065636f2d64656d6f2d6768712e676966#.gif
こう言うのを使ってリポジトリを曖昧検索できたほうが早い基素.iconmeganii.icon
こういうのがあるのか~yosider.icon
「仕事」と「そうじゃないもの」を明確に分けられないケースもあって、そういうときに毎度「今回は…」と考えたくないので ghq に従っておしまい、にしていますjuneboku.icon
知りたいinajob.icon
バージョン管理されているものとそうでないもので大きく2つディレクトリを分けている
NASに同期とかやりたいけど出来ていない
from 2023/11/22
プロジェクトごとのディレクトリをどこに置くか
sta.icon大別ごとにディレクトリつくってフラットにぶっこむ
大別の観点は今のところプラットフォーム軸と自分アカウント
D:\/work/
github/
gitlab/
azuredevops/
stakiran/
https://github.com/stakiran のうち常用しているもの
stakiran_sub/
https://github.com/stakiran のうち上記以外
井戸端を知る前にフォルダ管理について調べてたら/sta/DDWAD(ガラパゴスタ)を見つけて、のちにsta さんだったことに気付いたmeganii.icon
影響を受けている
TakamiChie.icon
~/Document/Github/プロジェクトカテゴリ/リポジトリ
プロジェクトカテゴリにはwork(収益事業)、book(書籍原稿)、SBC(SIDE BEACH CITY.関連)、furatto(ふらっとステーションとつか関連)等が入る