I'm cloning a repository from Github with GIT, in a remote environment running CentOs, using:
git clone https://myuser:[email protected]/Myrepository/repo.git
and is checking out all the files, except the ones starting with a dot
.htaccess .htpasswd
Notes:
ls -a
commandIs there any flag I need to add in order to checkout these files too?
[SOLUTION]
The problem wasn't with the git clone command, the missing dotfiles were due to another command executed afterwards
mv /path/one/* /path/two
Which moved everything except the dotfiles.
Thanks for your replies!
Please note that "dotfiles" are usually hidden by default in most operating systems. This applies whether you are using User or Command Line Interface.
If using CLI try adding -a
flag to ls
when listing the files in the git repo:
ls -a
As seen in man ls
:
-a Include directory entries whose names begin with a dot (.).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With