版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/toume/article/details/80913277
1.配置的是你个人的用户名称和电子邮件地址
$ git config --global user.name "lopo1"
$ git config --global user.email [email protected]
2. 使用 git config --list 检查配置信息
$ git config --listuser.name=lopo1
user.email=[email protected]
color.status=auto
color.branch=auto
color.interactive=auto
color.diff=auto
...
3. git clone 克隆项目
$ git clone [email protected]:PHPMailer/PHPMailer.git (项目地址)
4.git branch 查看本地分支
$ git branch
master
* mutilrecall
5.查看远程分支 git branch -a(remotes开头的代表是远程分支)
6.创建本地分支 git branch manange 或者 更新远程分支 git fetch
7.切换到分支 git checkout manange
8.push到远程 git push origin manange :manange
9.从远程pull git pull origin test:test
10.把提交的文件提交到一个分支 git cherry-pick 提交的记录 然后再推送到分支