Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.89 KB

File metadata and controls

51 lines (40 loc) · 1.89 KB

Machine-Learning-from-Basics-to-Advanced

BUT FIRST ~ setup your Machine Learning workspace/environment like a pro

Steps to work with cmd + git repos + github + jupyter notebook at the same time: THEN; create or add new files, edit files; commit, AND then push to Github

Tools

Command prompt (cmd) to run git commands

Github

Jupyter notebook .. install anaconda navigator

  1. Download and Installl git on your machine : https://git-scm.com/downloads
  2. Setup Git Locally -

git config --global user.name "Samuel Kibe"

git config --global user.email "email@example.com"

  1. Clone your repository to your local machine

git clone https://github.com/username/repository.git, to your path/folder i.e git clone https://github.com/username/repository.git my_folder

  1. Now Manually Copy Your Files into the Repository on your machine.
  2. Stage the Files for Git - This stages all the files you copied into the repository folder.

git add file1.ipynb

git add file2.ipynb

  1. Commit the Changes

git commit -m "Added initial files to the repository"

  1. Push the Changes to GitHub - change main to your preferred branch

git push origin main

image

  1. Successful - Verify on GitHub

Now working with the cloned repository and updating the files on Github momentarily

  1. Open Jupyter Notebook from anaconda prompt, or navigator whichever you prefer. ENSURE TO navigate to the cloned repository of interest:
  2. Work on the Files - open existing or create new etc
  3. Save Changes to GitHub
  4. through 'cmd' Commit and Push Changes to Github

git add .

git commit -m "Updated/added notebook files"

git push origin main

image

  1. Successful - Verify on GitHub