git 基本操作

2019-07-12  本文已影响0人  farlamp

1. 给用户添加昵称 

git config --global user.name "farlamp"

2.添加用户邮箱

git config --global user.email "623317276@qq.com"

3.根据邮箱生成ssh-key

ssh-keygen -t rsa -C "623317276@qq.com"

git 推送

一  、git怎样切换分支

        1.查看所有的分支

git branch -a

master

* trunk

remotes/origin/HEAD -> origin/master remotes/origin/master

remotes/origin/zhanghanlun 

        2.切换分支

   git checkout -b zhanghanlun origin/zhanghanlun

上一篇 下一篇

猜你喜欢

热点阅读