If .DS_Store was never added to your git repository, simply add it to your .gitignore file.
.gitignore
In your the root directory of your app and simply write
| #!/bin/bash | |
| # Variables | |
| SUBSCRIPTION_ID=$(az account show --query id --output tsv) # Subscription ID | |
| ROLE_NAME="8e3af657-a8ff-443c-a75c-2fe8c4bcb635" # Owner role | |
| ROLE_DEFINITION_ID="/subscriptions/${SUBSCRIPTION_ID}/providers/Microsoft.Authorization/roleDefinitions/${ROLE_NAME}" # Role definition resource ID | |
| PRINCIPAL_ID=$(az ad user show --id $(az account show --query user.name -o tsv) --query id -o tsv) # Your account object ID | |
| ROLE_ASSIGNMENT_ID=$(uuidgen) # Generate a unique GUID for the role assignment | |
| JUSTIFICATION="I need access to [$(az account show --query name --output tsv)] Azure subscription" # Justification for the role assignment | |
| API_VERSION="2020-10-01" # API version |
| --- | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: step-cli-jwt-inspect | |
| namespace: ${NAMESPACE} | |
| spec: | |
| serviceAccountName: ${SERVICE_ACCOUNT_NAME} | |
| volumes: | |
| - name: jwt-token |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| # Add new-origin as a new remote origin: | |
| git remote add new-origin https://github.com/example.git | |
| # Fetch all of the remote branches and tags: | |
| git fetch new-origin | |
| # List the commits of a specific branch and cherry-pick a commit. | |
| git log new-origin/<branch-from-new-repo> | |
| git cherry-pick <commit> |
| #!/bin/bash | |
| # Whenever you clone a repo, you do not clone all of its branches by default. | |
| # git clone --mirror REPO_URL could also clone all branches | |
| # If you wish to do so, use the following script: | |
| for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do | |
| git branch --track ${branch#remotes/origin/} $branch | |
| done |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ## Refer https://www.atlassian.com/git/tutorials/git-move-repository |
| find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} fetch origin main:main \; | |
| find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} merge main \; | |
| find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} add -A \; | |
| find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} commit -m "commit message example" \; | |
| find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} push origin some-branch \; |