It is IMPORTANT to note that you MUST COMMIT ALL PREVIOUS CHANGES BEFOE CONTINUING
-
Remove everything from Local Repo
git rm -r --cached .
or if you are untracking a specific file(s)git rm -r --cached name_of_file
-
Add back all untracked files
#!/usr/bin/env python3 | |
import os | |
# python function to check size of directory in bytes | |
def get_directory_size(directory): | |
total = 0 | |
try: | |
# check files in directory | |
for entry in os.scandir(directory): | |
if entry.is_file(): |
import os | |
import json | |
class SecretManager: | |
def __init__(self): | |
self.secrets = {} | |
def get_secrets(self, service_name): | |
if service_name in self.secrets: | |
return self.secrets[service_name] |
#!/usr/bin/env python3 | |
from PIL import Image | |
import os | |
dir = 'path/to/images' | |
for file in os.listdir(dir): | |
"""to ignore .DS_STORE file""" | |
if not file.startswith("."): | |
with Image.open(dir+"/"+file) as img: |