zoukankan      html  css  js  c++  java
  • Git 常用命令

    记录一下平时常用的Git命令行:

    	git config user.email   当前环境的邮箱
    	
    	git config user.name    当前环境的用户名
    	
    	git config -f .git/config user.name "用户名"    修改用户名
    	
    	git config -f .git/config user.email "邮箱"     修改用户邮箱      
    	
    	git status      当前代码的状态
    	
    	git add .       将所有改动添加到版本控制
    	
    	git commit -m "说明"      提交更改到分支
    	
    	git push        推送更改
    	
    	git pull        拉取代码
    	
    	git branch –a   查看所有分支
    	
    	git branch –remote  查看远程分支
    	
    	git branch –vv  查看远端分支与本地分支的关联关系
    	
    	git checkout "分支名"  切换到指定分支
    	
    	git merge "分支名"     将指定的分支与当前分支合并
    	
    	git fetch       同步本地分支与远程分支到相同状态
    	
    	git log .       查看提交记录
    

    后续会再添加

  • 相关阅读:
    VMware Workstation Pro下载密钥
    hypervisor
    Xmanager6 下载地址
    linux常用命令
    linux常用
    查看机器端口信息
    windows下快捷键
    SpringMVC学习笔记整理
    2017面试题收集
    oracle 常用知识点整理
  • 原文地址:https://www.cnblogs.com/wangqilong/p/12540375.html
Copyright © 2011-2022 走看看