DEV Community

Discussion on: Codeigniter 4 with Docker on AWS Cloud9

Collapse
 
efleurine profile image
Emmanuel • Edited

After cloning I would suggest to remove the .git folder because the moving command will move it also
and every other file in the home directory will get check in the repo
So

ubuntu:~/environment $ git clone https://github.com/fadilxcoder/docker-env.git
ubuntu:~/environment $ cd docker-env/ && rm -rf .git && cd ..
ubuntu:~/environment $ mv docker-env/{*,.*} ./
ubuntu:~/environment $ rmdir docker-env/
Enter fullscreen mode Exit fullscreen mode
Collapse
 
efleurine profile image
Emmanuel

Or even better to create an app folder and move inside first

ubuntu:~/environment $ mkdir app && cd app
ubuntu:~/environment $ git clone https://github.com/fadilxcoder/docker-env.git
ubuntu:~/environment $ mv docker-env/{*,.*} ./
ubuntu:~/environment $ rmdir docker-env/
Enter fullscreen mode Exit fullscreen mode