You can use git clone: $ git clone /path/to/project /target/path. Then remove the . git file $ rm -R /target/path/.git.
Just to sum up, I'd like to package the application as a Docker image and I don't want to include all untracked and Git-ignored files. I'd like to ...
Untracked files are everything else — any files in your working directory that were not in your last snapshot and are not in your staging area. When you first clone ...
The following command will create a tar archive in your home directory of all of the untracked (and not ignored) files in your directory: git ls-files ...
Git LFS is seamless: in your working copy you'll only see your actual file content. ... track all .ogg files in any directory $ git lfs track "*.ogg" # track files named ...
git ls-files --others lists untracked files including ignored; if you want to exclude
tells git stash to also stash your untracked files:
just a working copy, Git receives a full copy of nearly all data that the server has.
Edit all untracked files in different tabs git ls-files --others --exclude-standard | vim -p. Backup all modified files (to an existing ~/tmp directory): git ...
After the clone, a plain git fetch without arguments will update all the remote- tracking