WIP

快速开始

git config --global user.name <YOUR-NAME>
git config --global user.email <YOUR-EMAIL>

# 查看个人配置
git config --list
git config --global init.defaultbranch main
mkdir /path/to/your/project
cd /path/to/your/project
git init  			# initialize an empty git repo
git remote add origin git@repo-url.git

Create your first file and push it to the remote repo

echo "qtopie.rw" >> contributors.txt
git add contributors.txt
git commit -m 'Initial commit with contributors'
git push -u origin master

总结下常用操作

git init
git add .
git commit -m "first commit"
git remote add origin remote <repo-url>
git branch --set-upstream-to origin/main main
git remote -v
git push 

More

Creating Release

Tag

git tag
git tag v0.2
git push origin v0.2
git tag -d v0.21

Pull Request (PR)

Steps

Note that you can use git stash if you want to switch branches without bringing changes into another branch.

# socks5
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

# http
git config --global http.proxy 'http://127.0.0.1:3128'
git config --global https.proxy 'http://127.0.0.1:3128'

参考