Remove a folder from git tracking
2022-02-18
Question I need to exclude a folder (name uploads) from tracking. I tried to run git rm -r --cached wordpress/wp-content/uploads and after that I added the path to .gitignore /wordpress/wp-content/uploads but when I ran git status they show up as deleted. If I try to commit the changes, the files will be deleted, not only removed from tracking. What am I doing wrong? I have also tried git update-index --assume-unchanged <file> but this seems to untrack only files.…
List all developers on a project in Git
2022-02-16
Question Is it possible to list all users that contributed to a project (users that have done commits) in Git? Any additional statistics? Answer To show all users & emails, and the number of commits in the CURRENT branch: git shortlog --summary --numbered --email Or simply: git shortlog -sne To show users from all branches (not only the ones in the current branch) you have to add --all flag: git shortlog -sne --all
How do I force Git to use LF instead of CR+LF under Windows?
2022-02-15
Question I want to force Git to check out files under Windows using just LF not CR+LF. I checked the two configuration options, but was not able to find the right combination of settings. I want to convert all files to have LF line breaks and keep the LF in the files. Remark: I used autocrlf = input but this just repairs the files when you commit them. I want to force it to get them using LF.…
pip install from git repo branch
2022-02-15
Question Trying to pip install a repo's specific branch. Google tells me to pip install https://github.com/user/repo.git@branch The branch's name is issue/34/oscar-0.6 so I did pip install https://github.com/tangentlabs/django-oscar-paypal.git@/issue/34/oscar-0.6 but its returning a 404. How do I install this branch? Answer Prepend the url prefix git+ (See VCS Support): pip install git+https://github.com/tangentlabs/django-oscar-paypal.git@issue/34/oscar-0.6 And specify the branch name without the leading /.
"UNPROTECTED PRIVATE KEY FILE!" Error using SSH into Amazon EC2 Instance (AWS) [closed]
2022-02-14
Question Closed. This question is not about programming or software development. It is not currently accepting answers. </div> This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered. Closed 5 months ago.…
AccessDenied for ListObjects for S3 bucket when permissions are s3:*
2022-02-14
Question I am getting: An error occurred (AccessDenied) when calling the ListObjects operation: Access Denied When I try to get folder from my S3 bucket. Using this command: aws s3 cp s3://bucket-name/data/all-data/ . --recursive The IAM permissions for the bucket look like this: { "Version": "version_id", "Statement": [ { "Sid": "some_id", "Effect": "Allow", "Action": [ "s3:*" ], "Resource": [ "arn:aws:s3:::bucketname/*" ] } ] } What do I need to change to be able to copy and ls successfully?…
Add Keypair to existing EC2 instance
2022-02-14
Question I was given AWS Console access to an account with 2 instances running that I cannot shut down (in production). I would, however, like to gain SSH access to these instances, is it possible to create a new Keypair and apply it to the instances so I can SSH in? Obtaining the existing pem file for the keypair the instances were created under is currently not an option. If this isn't possible is there some other way I can get into the instances?…