shellgit remote -v git remote add github https://github.com/chenxiangfang/Main.git git fetch github git merge github/master git push
shellgit fetch github git merge github/master git push git fetch github --all git push origin --all
shell# 全局修改
git config --global user.email "565499699@qq.com"
git config --global user.name "Xiangfang Chen"
# 当前仓库修改
git config user.email "565499699@qq.com"
git config user.name "Xiangfang Chen"
bashgit config --global credential.helper store
bash# 设置代理
git config --global http.proxy http://proxyUsername:proxyPassword@proxy.server.com:port
git config --global https.proxy https://proxyUsername:proxyPassword@proxy.server.com:port
# git config --global http.proxy socks5://127.0.0.1:1080
# git config --global https.proxy socks5://127.0.0.1:1080
# 取消代理
git config --global --unset http.proxy
bash# Switch to the "master" branch:
git checkout master
# Rename it to "main":
git branch -m master main
# Get the latest commits (and branches!) from the remote:
git fetch
# Remove the existing tracking connection with "origin/master":
git branch --unset-upstream
# Create a new tracking connection with the new "origin/main" branch:
git branch -u origin/main
本文作者:菜鸟
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 许可协议。转载请注明出处!