GitHub Cli

登录Github

(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \\
	&& sudo mkdir -p -m 755 /etc/apt/keyrings \\
        && out=$(mktemp) && wget -nv -O$out <https://cli.github.com/packages/githubcli-archive-keyring.gpg> \\
        && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \\
	&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \\
	&& sudo mkdir -p -m 755 /etc/apt/sources.list.d \\
	&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] <https://cli.github.com/packages> stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \\
	&& sudo apt update \\
	&& sudo apt install gh -y

Local repo & remote repo

gh repo create

Git Configuation

git config --global user.name "hazy" 
git config --global user.email "[email protected]"

Untitled

图形化GUI

Tortoisegit

Github Desktop

C:\Users\管理员\.ssh

将本地代码提交到github的新分支上

git config --local -e 查看当前remote 情况,可以删除

git remote add origin [<https://github.com/leo2www/AI-dollop.git>](<https://github.com/leo2www/AI-dollop.git>) 添加目标项目git地址,设置为origin

git push -u origin dice-rolling 所有文件将上传origin,dice-rolling分支。远程仓库没有对应分支则新建(覆盖)分支。

大文件传输 LFS

git lfs

https://github.com/settings/billing/summary