Github and VSCode#
For this course, you need to create a GitHub account to upload your code. Choose a reasonable username and upload a profile picture. Once you have your GitHub account, you will create a repository named MCE 39659.
using Images, FileIO, ImageView, Plots
load("images/github1.png")
The description will be: “This repository contains the coursework for the Computational Economics with Julia course of the semester/year.” Set it as a Public repository and select “Add a README file” and then “Create repository”.
Once the repository is created, we will now manage it from VSCode.
using Images, FileIO, ImageView, Plots
load("images/github2.png")
Then from VSCode, you will press Ctrl+Alt+P
; this will open the command palette, where you should select Git: Clone -> Clone from GitHub -> MCE 39659
. Then, choose the local folder where you will work on your assignments.
https://code.visualstudio.com/docs/sourcecontrol/github
GIT Credentials in VS Code#
Download
git
from the official website and install it.When you’re finished installing Git, start VSCode and verify that Git is now identified.
Start a new Terminal and configure your ‘user.name’ and ‘user.email’ in git with the help of the following commands.
git config –global user.email “you@example.com”
git config –global user.name “Your Name”
Check:
git config –global –list
For more details: https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup?ref=itsfoss.com