{"repo":"ShahzaibAhmad05/gitree","free":true,"listed":false,"github":"https://github.com/ShahzaibAhmad05/gitree","clone":"git clone https://github.com/ShahzaibAhmad05/gitree.git","description":"A better \"ls\". View folder structures and copy entire codebases for prompting LLMs (works with gitignore)","language":"Python","stars":28,"topics":["ai-tools","automation","cli","code-context","command-line-tool","context-generation","developer-tools","git","gitignore","llm"],"license":"MIT","category":"cli-tools","readme_excerpt":"gitree 🌴 An upgrade from \"ls\" for developers. An open-source tool to analyze folder structures and to provide code context to LLMs. Published on PyPi [!NOTE] Instead of the full-name \"gitree\", you may use \"gt\" to call this tool --- 📦 Installation Install using pip (python package manager): --- 💡 Getting Started Open a terminal in any project and run: Now try using --full for printing full directory structure: Try using --emoji for better visuals: 🚀 Streamlined Workflow with Move The usual workflow in terminal involves listing directory contents and then using cd to navigate. With the -m / --move flag, gitree streamlines this by automatically changing your working directory to the determined root: This feature determines the root directory as the common parent of all given paths, displays the tree structure, and then changes your terminal's working directory to that root location. 🧠 This is where it gets useful For copying all code files in your project, with interactive selection: For zipping the whole project (use -g to respect gitignore): For dumping the whole project into a single file: --- 🧩 How it works --- ⚙️ Common Arguments General Options Argument Description ----------------- ------------------------------------------------------------------------------------------------------------- -h , --help Show the help message with all available options and exit. -v , --version Display the version number of the tool. -m , --move Change the terminal's working directory t","default_branch":null,"files":null,"tree":[],"storefront":"/r/ShahzaibAhmad05","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ShahzaibAhmad05/gitree/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}