There are two paths you can take to do this:
- Change the origin to your "remote" and remove or rename the Laravel origin.
- Preserve the Laravel origin and use a second "remote" for your files.
Option 1 is probably the easiest.
- Go to
D:/Dropbox/REPOS/Git/laravel-project/
and do git init
to make an empty git repo.
- Go to your
C:/www/laraval-project/
folder and do git remote -v
and save the URL for the current origin if you want to keep it.
- Run the command
git remote origin set-url file:///D:/Dropbox/REPOS/Git/laravel-project
- Optional: run
git remote add github url-you-saved-from-step-2
so you can do git pull github
if you want to update from the Laravel github
- Run
git push -u origin master
and it should push into your Dropbox's git repo.
For Option 2 you just skip steps 2 through 4 and - run git remote add dropbox file:///whatever
and change step 5 to git push -u dropbox master
or whatever branch you want. Once you use -u
once you can just do git push and it should push to whatever you set as your upstream with -u
.