I decided to create a blog to document thoughts from literature related to Machine Learning for Protein Engineering, collaborate with other protein engineers, and learn new programming languages. As an additional challenge, I decided to use a Windows machine rather than my typical Mac.
- Save and organize my thoughts from literature.
- Collaborate with other protein engineers.
- Learn and apply new programming languages like Markdown, html, CSS, and Javascript.
- Learn to use a Windows environment.
- Open the Start Menu and search for "Command Prompt."
- Right-click on Command Prompt and select "Pin to taskbar" for easy future access at the bottom of your desktop screen.
- Open Command Prompt from the taskbar.
- Type the following command to install Visual Studio Code:
winget install Microsoft.VisualStudioCode
- Press enter to install
- There are many text editors out there that would also work. I like Sublime the best, but I also have only used Sublime before...
- Type the following command to install Git:
winget install --id Git.Git -e --source winget
- Navigate to your Github profile
- Click on repositories
- Click on New to create a repository.
- Give the repository a name, description, and include a README file. The other settings depend on various things I am not an expert in so I would google about what license is best for what you want to do. I chose an MIT license (https://fossa.com/blog/open-source-licenses-101-mit-license/)
- Open Command Prompt from the taskbar
- Navigate to your desktop to make it easy to see your files
cd Desktop - Optional: You may need to set up a way to access your github account like using ssh. I explain how to do this below. If you already know about this and have this set up, skip to the next step.
- Clone your github repository to this file (to find this navigate to your github repository and click on the button Code)
git clone git@github.com:username/repository_name.git
- You can check if your ReadMe file can not be seen in this file to make sure you cloned the repository.
-
Start ssh agent
start-ssh-agent.cmd
-
Generate new key
ssh-keygen -t ed25519 -C "username@wisc.edu" -f C:"\Users\YourUsername\.ssh\id_ed25519"
- You will then be asked to set up a passphrase
- Verify passphrase by entering it again
-
Make sure ssh is running with your new key (assuming this is your first key, you may need to use ssh-add with a id_ed25519_new if you have made keys before in the past)
start-ssh-agent.cmd
You will be asked to enter your passphrase
-
Copy the new SSH public key to your clipboard:
type C:"\Users\YourUsername\.ssh\id_ed25519.pub" | clip
-
Go to GitHub and navigate to Settings > SSH and GPG keys.
-
Click on New SSH key to add the new key.
- Give it a title
- Paste the key into the "Key" field.
- Save it.
-
Configure SSH to use the correct SSH key by editing the
.ssh/configfile to include:notepad C:"\Users\YourUsername\.ssh\config"- You may need to press okay about an error. Continue with notepad to make sure the configuration to use your ssh and key to clone your github repository
Host github.com HostName github.com User username@wisc.edu IdentityFile C:"\Users\YourUsername\.ssh\id_ed25519"
-
Navigate to the repository directory:
cd C:"\Users\YourUsername\repository_name"
-
Check the status of your local repository:
git status
-
Add your changes to the staging area:
git add .Use
.to add all changed files, or specify the individual files. -
Commit your changes:
git commit -m "Your commit message" -
Push the changes to GitHub:
git push origin main
- Replace
mainwith the branch you're working on, if different.
- Replace
-
Ensure you're in the repository directory:
cd repository_name -
Pull the latest changes:
git pull origin main
Replace
mainwith the branch you're working on, if different.
Creating minimal static website (adapted from website and youtube video)
-
Oopen VSCode
-
Type
<h1>Website Name</h1>
-
Save as index.html (html file)
-
Push your edits to your repository to Github now
-
Navigate to your Github repository online
-
Go to setttings
-
Go to pages
-
Below Branch select None and change this to main
-
Click Save