Some git notes

Here i am posting some git notes for myself and if useful for somebody else, i appreciate any comment or even a coffee :)

To add something i edited:

git add .; git commit -m "bm"; git push origin master

To remember credentials for 15 minutes:

git config --global credential.helper cache



To modify the timeout:
git config --global credential.helper 'cache --timeout=3600'
 
Work with modules:
git submodule add https://github.com/wlamagna/datamining
git submodule init
git submodule update

If the submodule changed something and i want to have it point to the latest:
rm -rf datamining; git add .; git commit -m "deleted module"; git push origin master
git submodule add --force https://github.com/wlamagna/datamining
git add .; git commit -m "new module"; git push origin master

Comments