git config user.name
git config user.email
git config --global user.name "username"
git config --global user.email "email"
useradd userName
passwd userName
ssh-keygen
mkdir ~/.ssh && touch ~/.ssh/authorized_keys
cat .ssh/id_rsa.pub | ssh user@123.45.6.78 "cat >> ~/.ssh/authorized_keys"
git init --bare sample.git
git pull origin master --allow-unrelated-histories
git config --global http.postBuffer 524288000 git config --global http.proxy 127.0.0.1:1080 SS本地代理 git config --global http.proxy 127.0.0.1:1080 SS本地代理
git checkout -b 本地分支名 origin/远程分支名
git push origin 本地分支名:远程分支名
git tag -a 标签名 -m '标签说明'
git push origin 标签名
git push origin --delete test-feat
git branch -d test-feat
git push -u origin new_branch
git push origin :old_branch
- git branch -m oldBranchName newBranchName
- git push --delete origin oldBranchName
- git push origin newBranchName
- git branch --set-upstream-to origin/newBranchName