• Home
  • About
    • 程双双 photo

      程双双

      我慢慢地听雪落下的声音~

    • Learn More
    • Email
    • Github
    • Weibo
  • Posts
    • All Posts
    • All Tags
  • Projects

Git部分命令使用记录

19 Feb 2019

1.查看用户名和邮箱地址
$ git config user.name

$ git config user.email
2.修改全局用户名和邮箱地址
$ git config --global user.name "username"     

$ git config --global user.email "email"
3.修改局部用户名和邮箱地址
$ cd ~/you project                       

$ git config user.name "username"      

$ git config user.email "email"
4.从master分支合并某个分支,保留提交记录
$ git merge dev1.2.0 --allow-unrelated-histories


Git