Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aliuosio
Last active March 9, 2018 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aliuosio/246fb8673de066ec5cc278f39ca2f5fd to your computer and use it in GitHub Desktop.
Save aliuosio/246fb8673de066ec5cc278f39ca2f5fd to your computer and use it in GitHub Desktop.
Useful Git Commnds
// Save Git Password for one year
git config --global credential.helper 'cache --timeout=31536000';
// Ignore chmod
git config core.fileMode false;
// Set Username Global
git config --global user.name "Your Name"
// Set User Email
git config --global user.email mail@test.de
git lfs install
// track for example all PSD Files
git lfs track "*.psd"
// Make sure .gitattributes is tracked
git add .gitattributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment