https://www.runoob.com/git/git-basic-operations.html
# 配置个人的用户名称和电子邮件地址---确定使用者的账户
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
//
git config --global user.email "18228673021@163.com"
git config --global user.name "SAM9029"
1
2
3
4
5
2
3
4
5
# 初始化仓库
$ git init
// 初始化,并创建仓库!!
$ git init kdir projectName
1
2
3
2
3
# 使用命令git remote add
和码云的远程库关联:
git remote add origin git@gitee.com:qingyameng/learngit.git
1
# . git status
查看当前(仓库)文件更新情况
git status
1
# .使用 git remote -v
命令, 可以显示当前仓库链接的remote仓库.
$ git remote -v
gitee git@gitee.com:zhangrunhui/python-webspider-learning.git (fetch)
gitee git@gitee.com:zhangrunhui/python-webspider-learning.git (push)
1
2
3
2
3
# .使用 git branch -a
命令, 可以显示当前项目的branch数量
$ git branch -a
1