Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git clone in current directory

git clone git@github.com:user/my-project.git .
Comment

git clone to specific folder

git clone repo-url full-path-to-folder

# example
git clone git@github.com:org/repo.git /full/path/to/folder
# will clone "repo" to "/full/path/to/folder"
cd /full/path/to/folder/
git status
Comment

how to git clone into a directory

git clone git@github.com:whatever folder-name
git clone git@github.com:whatever .
Comment

git clone directory from repository

git clone [repo]
cd [name of sub-dir]
git filter-branch --prune-empty --subdirectory-filter [path to sub-dir] HEAD
Comment

PREVIOUS NEXT
Code Example
Shell :: push image to docker hub 
Shell :: sed with variable 
Shell :: restart bluetooth kali 
Shell :: add dir to your path kali 
Shell :: see cpu usage terminal linux 
Shell :: remove directory not empty windows 
Shell :: access wsl files from windows 
Shell :: What Are The Correct Permissions For ~/.ssh Directory? 
Shell :: vite js install 
Shell :: docker machine install linux 
Shell :: start tomcat 9 as a service windows 
Shell :: how to change or remove ubuntu logo in login page 
Shell :: howto register dll windows 10 
Shell :: install csfml on linux 
Shell :: name stash 
Shell :: install minikube chocolatey 
Shell :: run redis server 
Shell :: on hotspot and wifi at the same time arch linux 
Shell :: grafana speedtest 
Shell :: what does git restore do 
Shell :: install docker centos 7 
Shell :: linux zip file 
Shell :: what is gist in github 
Shell :: store pass git 
Shell :: linux unique lines 
Shell :: how to delete files in linux 
Shell :: git config log 
Shell :: tar extract command windows 
Shell :: install cute fish on ubuntu 
Shell :: how to setup path using git bash in windows 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =