- step - 01 : Install google drive, dropbox on your local PC and enable sync.
- step - 02 : install and configure git on your PC.
- step - 03 : create a folder on google-drive and open
git-bash
there - step - 04 : write git command
git init --bare
- step - 05 : Initialize a git repo outside of google-drive
- step - 06: now connect google drive repo with your the repo that you just created outside of google drive.
git remote add origin "/C/Users/JoeUser/Google Drive/git/project1.git"
(note if the url does not have any space then remove double quote) to check if the remote addedgit remote -v
- step - 07 : If remote added without any error then push your local changes
git push -u origin master
And you done. now you can make changes and push your local changes to google-drive repo. If you want to clone that repo then simplygit clone "/C/Users/JoeUser/Google Drive/git/project1.git"
Follow me on Githab| Twitter| Facebook| Quora
© copyright reserved by the Author.