Git

upload the file from local to github

Posted by Zhangcun Yan on December 18, 2023

Git

How to upload your project to Github!

There some steps :

git clone 
git status
git add .
git commit -m "my changes" 
git remote add origin https://github.com/zinmyoswe/React-and-Django-Ecommerce.git
git push -u origin master

summary-errors common:

Pushing to Git returning Error Code 403 fatal: HTTP request failed

So you need to change your repo config on your PC to ssh way:

  1. Edit .git/config file under your repo directory.
  2. Find url=entry under section [remote "origin"].
  3. Change it from: url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.git to: url=ssh://git@github.com/derekerdmann/lunch_call.git That is, change all the texts before @ symbol to ssh://git
  4. Save config file and quit. now you could use git push origin master to sync your repo on GitHub.

Use git in colab

  1. connect colab with google drive by command :{from google.colab import drive; drive.mount(‘/content/drive’)}
  2. check the file in the folder by command “!ls”
  3. change the folder by command “%cd folder path”

  4. create a new folder by command “import os ; folderpath =“/”; os.makedirs(folderpath,exist_ok=True”)

Offic tools

PDF

  1. Compress PDF

Interpretable AI

SHAP

  1. How to use shap
  2. Draw the figure of shap
  3. 机器学习模型可解释性进行到底 —— SHAP值理论(一)