Insted of using .gitignore add files to .git/info/exclude
code .git/info/excludeIf you already have files that are changed you'll need to set them as unchanged
git update-index --assume-unchanged .gitmodulesInsted of using .gitignore add files to .git/info/exclude
code .git/info/excludeIf you already have files that are changed you'll need to set them as unchanged
git update-index --assume-unchanged .gitmodules| 1. Add Storage | |
| 2. Display is VBOXSVGA @ 90MB | |
| 3. Add Network adapter 2 as HostOnly, promiscuous deny | |
| 4. Mount shared folder/drive in settings (may need to do some terminal commands to automount here) | |
| 5. Add self to sudo and root group `sudo adduser john sudo` and `sudo usermod -a -G root john` | |
| 6. Install posgres and also `sudo apt-get install libpq-dev` | |
| 7. Install RBENV, and reshash it | |
| 8. | |
On VM run
sudo apt-get install openssh-server openssh-client
ifconfig
| git pull origin $(git rev-parse --abbrev-ref HEAD) |
get all the commits which have deleted files and the files deleted;
git log --diff-filter=D --summary
to restore the deleted file.
git checkout $commit~1 path/to/file.ext
where $commit is the value of the commit you've found at step 1, e.g. e4cf499627
| # scp <user>@<ec2-ip>:<path/to/file/to/download.txt> <filepath/on/local.txt> | |
| scp [email protected]:~/new_results.txt new_results.txt | |
| scp [email protected]:/var/luna/user_data.tsv user_data.tsv | |
| # to send to the EC2 | |
| scp new_results.txt [email protected]:~/new_results.txt | |
| scp [email protected]:/var/crape/BulkLoans.20211001_20220124_results.tsv BulkLoans.20211001_20220124_results.tsv |
from microsoft/vscode-remote-release#2518
look for line similar to
\ln /home/#####/.vscode-server/bin/78a4c91400152c0f27ba4d363eb56d2835f9903a/vscode-remote-lock.#####.78a4c91400152c0f27ba4d363eb56d2835f9903a.target /home/#####/.vscode-server/bin/78a4c91400152c0f27ba4d363eb56d2835f9903a/vscode-remote-lock.#####.78a4c91400152c0f27ba4d363eb56d2835f9903a
[13:55:17.276] stderr> ln: failed to create hard link ‘/home/#####/.vscode-server/bin/78a4c91400152c0f27ba4d363eb56d2835f9903a/vscode-remote-lock.#####.78a4c91400152c0f27ba4d363eb56d2835f9903a’: File exists
[13:55:17.276] > Installation already in progress...
Then go delete the .target file
| git checkout feature_branch | |
| git reset --soft master | |
| git add -A && git commit -m "commit message goes here" |