I'm enthusiastic and passionate about web development and design in all it's forms and love to build application with efficient and simple methods

Sunday, January 4, 2015

Solving "this exceeds GitHub's file size limit of 100 MB"

7:43 PM Posted by Codeinterpreter 2 comments
When You accidentally push large file to Github this warning will shown :

"this exceeds GitHub's file size limit of 100 MB"

To solve this problem is simple. Just type this command:

git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch YOUR-FILE'

This command will filter chosen file from push process

File Compress,Gunzip,Mysql Command in Terminal Ubuntu

7:36 PM Posted by Codeinterpreter , No comments
Compress and extract command in Ubuntu.
  • Compress File to Tar:  
tar czf name_of_archive_file.tar.gz name_of_directory_to_tar
  • Extract File from Tar: 
tar -xzvf file.tar.gz
  • Extract gz to MYSQL: 
gunzip < file-name.sql.gz | mysql -u user -p password  database-name
  • Compress MYSQL to gz: 
mysqldump -u user -p password database-name |gzip -9 > file-name.sql.gz 
  • Export
mysqldump -u user  -p password database-name > file-name.sql
  • Import: 
mysql -user -password database-name < file-name.sql