A simple git cloner script, which clones any Git repository to your set Projects folder and opens VS Code to quickly get started editing.
- Copy the above script and paste it in a file named
git-clone
- Adjust
PROJECTS_LOCATION
variable to your Projects folder - Assign necessary permissions to execute
chmod +x git-clone
- Add necessary paths to $PATH environment variable
- Adjust the path for VS Code (Assumed
code
command maps to VS Code) - Logout & login
Anytime, type git-clone
in terminal and start cloning. Once cloned, press Y
to open in VS Code