If you need to remove files from a repo after committing, use …
Remove file
git rm --cached file.ext |
Push to repo
git push |
cloud engineer
If you need to remove files from a repo after committing, use …
Remove file
git rm --cached file.ext |
git rm --cached file.ext
Push to repo
git push |
git push
If you’re getting a “HTTP Error 404 – Not Found” error when trying to run yum update, it could be a corrupted cache. Clear the cache on the system by running the following.
yum clean all rm -rf /var/cache/yum/* |
yum clean all rm -rf /var/cache/yum/*
Run yum update again. The errors should be gone.
There are two ways to store git credentials. One is temporary and the other permanent. You can store your git credentials unencrypted on disk forever or in cache memory temporarily.
Temporary. Store for 15 minutes.
git config credential.helper 'cache --timeout=900' |
git config credential.helper 'cache --timeout=900'
Permanent.
git config credential.helper store git push http://example.com/repo.git Username: <type your username> Password: <type your password> |
git config credential.helper store git push http://example.com/repo.git Username: <type your username> Password: <type your password>
Next time you use git, you will not be prompted for a password.
Here’s the command to empty or clear Linux’s buffer or cache. Run it as root.
free && sync && echo 3 > /proc/sys/vm/drop_caches && free |
free && sync && echo 3 > /proc/sys/vm/drop_caches && free