gitlab 初始化push
查看目前仓库可以远程更新的信息
git remote -v
配置一个远程更新链接,要拥有git仓库访问权限的
git remote add upstream https://xxxx.git
拉取远程仓库的代码
git fetch upstream
合并远程仓库的代码
git merge upstream/master
把远程仓库的代码作为新源提交到自己的服务器仓库中
git push
git设置http免密
git config --global credential.helper store
清除git记住的密码
git config --system --unset credential.helper
git 查看当前用户配置
git config --global --list
git 全局替换用户名
git config --global --replace-all user.email "新用户名"