You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> GitHub is the world’s leading platform for version control and collaboration. Used with Azure, it enables:
30
29
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.
32
34
33
-
code .
35
+
## How to Commit/Push to GitHub
34
36
35
-
git pull
37
+
> This section summarizes the standard workflow for contributing code.
36
38
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)).
38
41
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>`
40
45
41
-
git add -A
46
+
2. Change directory and open in VS Code
47
+
`cd <repo-path>`
48
+
`code .`
42
49
43
-
git commit -m ""
50
+
3. Sync with latest changes
51
+
`git pull`
44
52
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.
0 commit comments