-
Notifications
You must be signed in to change notification settings - Fork 17
git: user configuration instructions
sethismyfriend edited this page Nov 15, 2014
·
2 revisions
Git stores configuration info in the global ~/.gitignore, and also per project in local .gitignore files. To commit code from the Galileo, you can configure git as follows:
git config --global user.email [your email]
git config --global user.name [your username]
git config --global http.sslverify false
git config --global credential.helper "cache --timeout=86400"
Note, the last 2 lines turn off ssl (which is not running on the Galileo) and caches your login for 24 hours.
To confirm your settings:
git config --global --list
Git supports local and global .gitignore files. It is good practice not to commit 3rd party node_modules into your repo. The local .gitignore is parsed automatically by git. To set up a global .gitignore:
git config --global core.excludesfile '~/.gitignore'
So you don't have to enter your password each time you push:
git remote set-url origin "[email protected]:IntelOpenDe
sign/MakerNode.git"