github上传

github上传相关

1
2
3
4
5
6
7
8
9
10
11
12
13
14
git init
echo "# ptf" >> README.md
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/xuchengcheng926/ptf.git
git push origin mian 如果你是第一次用(git push -u origin master)

git remote add origin https://github.com/xuchengcheng926/ptf.git
git branch -M main
git push -u origin main

git config --global user.email "邮箱"
git config --global user.name "用户名"