Skip to content

Commit 66849e1

Browse files
authored
update + context
1 parent 1be2084 commit 66849e1

1 file changed

Lines changed: 43 additions & 13 deletions

File tree

GitHub/README.md

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,59 @@ Last updated: 2024-12-13
2323

2424
</details>
2525

26-
## How to Commit/Push to Github
26+
## Why GitHub for DevOps and Azure?
2727

28-
~~~
29-
git clone <repo> or git -c http.sslVerify=false clone <repository-name - ssh>
28+
> GitHub is the world’s leading platform for version control and collaboration. Used with Azure, it enables:
3029
31-
cd <repo path>
30+
- **Continuous Integration/Continuous Deployment (CI/CD)** using GitHub Actions or Azure Pipelines.
31+
- **Infrastructure as Code (IaC)** through integration with tools like Terraform or Bicep.
32+
- **Automation** for testing, security, and delivery.
33+
- **Collaboration** using pull requests, code reviews, and issues—all traceable to Azure Boards.
3234

33-
code .
35+
## How to Commit/Push to GitHub
3436

35-
git pull
37+
> This section summarizes the standard workflow for contributing code.
3638
37-
git checkout -b <new branch_name>
39+
> [!TIP]
40+
> For secure Azure DevOps integration, set up SSH keys ([see reference](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)).
3841
39-
git status
42+
1. Clone the repository
43+
`git clone <repo-url>`
44+
*(Use SSH for better security and automation in CI/CD pipelines.)* `git -c http.sslVerify=false clone <repository-name - ssh>`
4045

41-
git add -A
46+
2. Change directory and open in VS Code
47+
`cd <repo-path>`
48+
`code .`
4249

43-
git commit -m ""
50+
3. Sync with latest changes
51+
`git pull`
4452

45-
git push origin [branch]
53+
4. Create a new branch for your feature/bugfix
54+
`git checkout -b <branch-name>`
55+
56+
5. Check status, stage, and commit
57+
`git status`
58+
`git add -A`
59+
`git commit -m "Description"`
60+
61+
6. Push your branch
62+
`git push origin <branch-name>`
63+
64+
7. (Optional) Pull latest changes from remote
65+
`git pull origin <branch-name>`
66+
67+
**Troubleshooting:**
68+
- If you get SSL or permission errors, verify your SSH key setup and repository access.
69+
- Use `git config --global user.name` and `git config --global user.email` to set your identity.
70+
71+
## GitHub Actions: Automate with Azure
72+
73+
> You can automate builds, tests, and deployments to Azure using [GitHub Actions](https://github.com/Azure/actions):
74+
75+
- Deploy web apps, containers, or functions to Azure.
76+
- Run Terraform/Bicep scripts for infrastructure provisioning.
77+
- Integrate security scans and compliance checks into your CI/CD.
4678

47-
git pull origin [branch]
48-
~~~
4979

5080
## Good Content List Format
5181

0 commit comments

Comments
 (0)