Network Drive¶
Tips¶
Stop tracking the file but not delete it from your system use:
Tracking the file again:To untrack every file that is now in your .gitignore:
commit any outstanding code changes
removes any changed files from the index:
git rm -r --cached .then just run:
git add .commit it:
git commit -m ".gitignore is now working"
Using Git on a Windows Network Drive¶
move to the soon to be git repository
cd /D "Y:\dev\MyProject"create an empty git repository
git init --bareclone a local reporitory (this will copy to local)
cd /D "C:\dev\MyProject & git clone file:"//Y:\dev"
already have a local git repository
Fetch master branch from Windows Network Drive
move to the soon to be git repository
cd "C:\dev\MyProject"reate an empty git repository
git initfetch master branch from origin
$ git pull "Y:\dev\MyProject" "master"