Linked Questions
86 questions linked to/from Do a "git export" (like "svn export")?
5 votes
4 answers
17k views
How do I remove all traces of Git for my repository? [duplicate]
I have a repository. ("git init") I've done check-ins and commits and logs and stuff. But, how can I remove all traces of git and delete git off this directory (and subdirectories)? I'm on Ubuntu.
1 vote
1 answer
762 views
How can I send someone the most recent version of one branch of my git repo without version control history? [duplicate]
I'm trying to send someone a copy of the current state of one branch on my Git repository. He doesn't have access to the repository itself and doesn't need version control history. I would also like ...
2 votes
0 answers
553 views
Create Working Tree from Bare Git Repo [duplicate]
Possible Duplicate: How to do a “git export” (like “svn export”) I have a bare git repository that I created using "git clone --bare". This is a repository where I push ...
2 votes
1 answer
215 views
How can I copy the tree of a particular commit to a non-working folder? [duplicate]
I have a local Git repository and all I want to do is copy all of the files from a particular revision to a folder outside of the working directory. I was assuming that it would just be a single ...
0 votes
1 answer
118 views
How to download files from a commit with directory structure of the committed files [duplicate]
I have committed many files in different directorys using intellij and git. How to download these committed files with their directories structure?
1001 votes
15 answers
1.2m views
How do I remove version tracking from a project cloned from git?
I want to remove all version tracking from a project's directory. What is the correct method to do this? Can I do a shell command such as: rm -rf .git from my projects directory or is there a way ...
157 votes
22 answers
184k views
How to fully clean bin and obj folders within Visual Studio?
If you right click on a folder, you will see a "Clean" menu item. I assumed this would clean (remove) the obj and bin directory. However, as far as I can see, it does nothing. Is there another way? (...
185 votes
11 answers
260k views
Checkout to a specific folder
I want to use something similar to: git checkout -- <path>/<file> but I want to checkout the file to some folder I choose, rather than the overwriting the local <path>/<file>. ...
227 votes
4 answers
128k views
git shallow clone (clone --depth) misses remote branches
After cloning a remote repository it does not show any remote branch by -a option. What could be the problem? How to debug it? In this snippet two of the remote branches are not shown: $ git clone --...
96 votes
14 answers
92k views
Export only modified and added files with folder structure in Git
I would like to get a list of modified and added files in an specific commit so that I can export them and generate a package with the file structure. The idea is to get the package and extract it on ...
181 votes
8 answers
165k views
Git Clone: Just the files, please?
I want to clone a GIT repo and NOT end up with a .git directory. In other words I just want the files. Is there a way to do this? git clone --no-checkout did the exact opposite of what I want (gave ...
91 votes
9 answers
144k views
Remove all git files from a directory?
I have a folder under version control. I want to make a copy of it to send around, but don't want to include all the .git directories and the files underneath it. Is there a way to remove all the ...
68 votes
10 answers
48k views
git export from github remote repository
I'd like to export from github remote repository, not cloning it. Similar to svn export, I do not want to get .git folder with it. I can work around it by cloning and removing .git folder. I wonder if ...
53 votes
5 answers
80k views
cp command should ignore some files
Sometimes I need to perform following command cp -rv demo demo_bkp However I want to ignore all the files in directory .git . How do I achieve that? It takes a long time to copy .git files and I do ...
41 votes
6 answers
34k views
Git: Checkout only files without repository?
i'd like to just checkout the files without the .git files and the whole repository. It's because i'd like to manage a website (php & html) with git and i'm looking for an easy way to update the ...