Spaces:
Runtime error
Runtime error
Download git n github (1) from ramzan118/RAG-Project: direct link, hf CLI and curl.
- Browser
- Download file 5.12 kB
-
https://huggingface.co/spaces/ramzan118/RAG-Project/resolve/main/git%20n%20github%20(1)
- Command line
-
hf download 'hf://spaces/ramzan118/RAG-Project/git n github (1)'
-
curl -L -o 'git n github (1)' 'https://huggingface.co/spaces/ramzan118/RAG-Project/resolve/main/git%20n%20github%20(1)'
5.12 kB
| to test remote server connectivity from local to cicd to remote server | |
| it checkout remoteserver | |
| Create an Empty Commit: | |
| git commit --allow-empty -m "Trigger CI/CD pipeline" | |
| Push to the remoteserver Branch: | |
| git push origin remoteserver | |
| git push https://ramzan118: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@github.com/Immensecode/cdawebapp.git | |
| for cicd to remote server | |
| ssh-copy-id -i ~/.ssh/your_key.pub user@203.170.77.228 | |
| code push for stagerapidcompute to immensecode2025 repo ImmenseCode2025/stagemobilebackend | |
| git push https://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@github.com/ImmenseCode2025/prodmobilebackend.git prodlocal | |
| git remote set-url origin https://github.com/ImmenseCode2025/prodmobilebackend.git | |
| git remote set-url origin git@github.com:ImmenseCode2025/prodmobilebackend.git | |
| git push --force origin prodlocal | |
| git checkout -b feature/nginxdel | |
| git remote set-url origin https://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@github.com/ImmenseCode2025/prodmobilebackend.git | |
| git remote set-url origin https://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@github.com/ImmenseCode2025/stagemobilebackend.git | |
| git remote set-url origin https://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@github.com/ImmenseCode2025/cda-chat-backend.git | |
| git push origin feature/nginxdel | |
| now create the PR | |
| To make identical remote and local branch | |
| 2114 git log --oneline Staging -3 | |
| 2115 git log --oneline origin/localstage -3 | |
| 2116 git checkout Staging | |
| 2117 git merge localstage | |
| 2118 git push origin Staging | |
| ************************************************* | |
| 1432 gh auth login | |
| 1433 sudo snap install gh | |
| 1434 gh auth login | |
| 1435 gh repo list ramzan118 --limit 10 | |
| 1436 gh repo list ramzan118 --limit 100 | |
| 1437 gh repo view ramzan118/TextUtility --web | |
| 1438 gh api /user/orgs --jq '.[].login' | |
| 1439 gh org view Orenda-Project --web | |
| 1440 gh api /orgs/Orenda-Project --jq . | |
| 1441 gh api /orgs/Orenda-Project --jq '{name: .name, description: .description, blog: .blog}' | |
| 1442 gh browse https://github.com/Orenda-Project | |
| 1443 gh repo list Orenda-Project --limit 100 | |
| ============================================================================== | |
| github-recovery-code.txt | |
| 3bb8a-bc56b | |
| 2fd7b-56aa2 | |
| 30f83-11cd7 | |
| 9e1ca-28fdb | |
| 075d0-95722 | |
| 6f88b-e5412 | |
| c5182-9a723 | |
| 22885-a059a | |
| ed932-b41b4 | |
| bb27e-ef98b | |
| aa783-3f0e3 | |
| 51f9e-f322a | |
| 8d7b8-60147 | |
| 7cb96-6884b | |
| 8305f-c6f5f | |
| 7e567-4d492 | |
| **************************************** | |
| PAT Carbee-CBA-948 | |
| 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 | |
| export TF_VAR_github_token="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" | |
| terraform apply | |
| terraform plan -var="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" | |
| terraform apply -var="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" | |
| git remote set-url origin https://ramzan118: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@github.com/CarBee-Team/dev-ecs.git | |
| git checkout CBA-948 | |
| https://github.com/CarBee-Team/dev-ecs | |
| ***************************************************** | |
| for large files | |
| Remove the large files from Git history: | |
| bash | |
| # Navigate to your infra directory | |
| cd infra/ | |
| # Remove Terraform cache and providers | |
| git rm --cached -r .terraform/providers/ | |
| # Verify removal | |
| git status | |
| Update your .gitignore (add these lines): | |
| bash | |
| # Add to ~/techx-ecs-dev/.gitignore | |
| **/.terraform/ | |
| *.tfstate | |
| *.tfstate.backup | |
| Commit the changes: | |
| bash | |
| git add .gitignore | |
| git commit --amend --no-edit | |
| Force push the corrected history: | |
| bash | |
| git push origin ecsfargate --force | |
| Important follow-up steps: | |
| Clean up local Terraform cache: | |
| bash | |
| rm -rf infra/.terraform | |
| Reinitialize Terraform (after push): | |
| bash | |
| cd infra | |
| terraform init | |
| This will: | |
| Remove the large provider binaries from Git history | |
| Prevent future commits of Terraform internals | |
| Maintain your infrastructure code while removing binaries | |
| Allow successful pushes to GitHub | |
| Note: If you get persistent large file errors, use Git LFS: | |
| bash | |
| # Install Git LFS | |
| git lfs install | |
| # Track large files | |
| git lfs track "*.zip" "*.bin" | |
| ************************************************************* | |
| To run pre-commit checks before committing your changes (especially for YAML linting), follow these steps: | |
| Install pre-commit (if not already installed): | |
| pip install pre-commit | |
| Add a .pre-commit-config.yaml file to your repository root (if you don't have one already). Example configuration for YAML linting: | |
| repos: | |
| - repo: https://github.com/adrienverge/yamllint.git | |
| rev: v1.35.0 # Check for latest version | |
| hooks: | |
| - id: yamllint | |
| Install the git hooks: | |
| pre-commit install | |
| Now when you run: | |
| git add buildspec.yml | |
| git commit -m "new" | |
| The pre-commit hook will automatically run yamllint on your staged files. | |
| If you want to run it manually before committing: | |
| pre-commit run yamllint --files buildspec.yml | |
| If you get permission issues (from using sudo nano earlier), fix file ownership: | |
| sudo chown -R $(whoami) .git/ | |
| sudo chown $(whoami) buildspec.yml | |
| After fixing any linting errors, push your changes: | |
| git push origin ecsfargate | |
| pre-commit run --all-files | |
| ********************************************************************************************************* | |