README.md
#git文件仓库
文件名中不要包含 括号等等特殊字符,否则使用wget下载时有问题,
#todo 不知道可不可以使用转义 ##中文会url encode
网页转markdown
https://github.com/phodal/2md
直接访问博客 phodal.github.io/2md/
不好用
直接复制网页在typora软件上粘贴就可以转换成marddown
typora
仓库本身大,文件也比较大,git lfs clone试了一下没啥效果,主要是在线使用,clone到本地很费时间,但网速可以跑满
git remote -v
main use
git remote set-url origin https://codechina.csdn.net/lkx/my-files.git
https://qq769298218@codechina.csdn.net/lkx/my-files.git
backup use
git remote set-url origin https://e.coding.net/lkx1993/lkx/files.git
visit_no_login: https://lkx1993.coding.net/public/lkx/files/git/files
wget https://lkx1993.coding.net/p/lkx/d/files/git/raw/master/tools/DittoSetup_3_21_50_0\(剪切板\).exe
linux括号需要转义,下载下来文件名是这样的 DittoSetup_3_21_50_0(?%89??%88%87?%9D?).exe
windows浏览器不需要转义,直接使用url https://lkx1993.coding.net/p/lkx/d/files/git/raw/master/tools/DittoSetup_3_21_50_0(剪切板).exe
coding.net是一个仓库最大限制2g
wget https://lkx1993.coding.net/p/lkx/d/files/git/raw/master/tools/docker-compose-Linux-x86_64
wget "https://lkx1993.coding.net/p/lkx/d/files/git/raw/master/tools/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
https://codechina.csdn.net/lkx/my-files.git
wget https://codechina.csdn.net/lkx/my-files/-/raw/master/tools/DittoSetup_3_21_50_0\(剪切板\).exe
wget https://codechina.csdn.net/lkx/my-files/-/raw/master/tools/docker-compose-Linux-x86_64?inline=false
Git 全局设置
git config --global user.name "夏浅夏浅"
git config --global user.email "769298218@qq.com"
创建一个新仓库
git clone https://codechina.csdn.net/lkx/my-files.git
cd my-files
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
推送现有文件夹
cd existing_folder
git init
git remote add origin https://codechina.csdn.net/lkx/my-files.git
git add .
git commit -m "Initial commit"
git push -u origin master
推送现有的 Git 仓库
cd existing_repo
git remote rename origin old-origin
git remote add origin https://codechina.csdn.net/lkx/my-files.git
git push -u origin --all
git push -u origin --tags
https://blog.csdn.net/u014712086/article/details/107005216/
fatal: remote origin already exists.解决方法
git remote -v
git remote set-url origin https://qq769298218@codechina.csdn.net/lkx/my-files.git
git push origin master || git push -u origin master