I want to keep a separate work space for my development job.I moved .git file from my home directory to another directory named 'workspace'. Now when I use git init
in workspace
directory, everything works just fine but when I use git init
inside my home directory, it re-creates the .git
file in my home directory.
I am using Ubuntu and my home directory is home/tyler
.This is where .git
file is stored my default.
My directory structure is: home/tyler home/workspace
The best thing is to clone your git workspace.
Go in your new folder where you want the copy of your repo and execute
git clone [folder to your repo]
that will create a folder inside that with the name of your repo folder.Hope that helps