Skip to content

n1ge1m/arm-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arm-workshop

This area is a template repository, used by the Citadel ARM workshop at https://aka.ms/citadel/arm.

If you are working through the series of labs in this workshop then you will need a GitHub account and to have met all of the other prereqs. You will not be able to complete the fork, clone and test in this guide unless you have configured vscode and installed git into the operating system.

Fork and Clone

You should then fork this repository into your GitHub account and then clone it to your laptop using vscode. Follow these instructions:

  1. Right click on the tab in your browser and duplicate so that you can work in one whilst reading this file in the other
  2. Click on the Fork button at the top right:

Fork

  1. Select your personal GitHub account
  2. The repo will be forked as https://github.com/username/arm-workshop
  3. Click on the Clone or download button and click on the copy icon:

Fork

  1. Open up a new Visual Studio Code window
  2. Type CTRL+SHIFT+P to open the Command Palette
  3. Type clone until Git: Clone appears then select it:

Command Palette

  1. Paste in the https://github.com/username/arm-workshop.git repository URL
  2. Select the destination directory
    • You can choose a default clone directory in Settings (CTRL+,)
    • E.g. "git.defaultCloneDirectory": "C:\\Users\\username\\git"
  3. Click on Open Repository when prompted

Your vscode should now look similar to this:

Cloned Repo

Testing

Let's create a test file to check that the Git integration is working correctly.

We will create a new file, stage the change locally and then finally commit it to the local clone of the repository. (Whenever you commit you need to include a message to describe that commit.) The commit will only be local at that point, so we will then push (or sync) so that you can confirm the change is in your GitHub repo.

  1. Create a new file called deleteme.md in vscode
  2. Add in some text, such as the following:
# Test File

This is a test markdown file.
  1. You should see a round blob on the file's tab to show that is has unsaved changes
  2. Click CTRL+S to save the file
    • The Source Control icon on the sidebar should now show the number
  3. Click on the Source Control icon, or use CTRL+SHIFT+G
  4. Hover over the deleteme.md filename and click on the +
    • This stages the changed file
  5. Type in a message to describe the commit such as Initial commit
  6. To commit, either click on the tick (or check), or type CTRL+ENTER:

Commit

  1. Push the commited change up, using either Push from the ellipsis (...) menu, or by clicking on the sync in the status bar:

Sync

  1. Browse to your https://github.com/username/arm-workshop repo fork
  2. Refresh the page to reflect the change

Refresh

Once you have confirmed that everything is working well then you should be good to continue with the labs.

About

Templated student repository for the https://aka.ms/citadel/arm workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%