如何查看提交带来的更改?

时间:2017-02-17 10:53:08

标签: git

我们有一个GitBlit服务器,但是如果我登录,那么UI并没有真正向我显示n commit所带来的变化。我希望有一些像“git commit [HASH]”这样的命令可以显示该提交所做的更改。

有没有简单的方法可以看到这个?

2 个答案:

答案 0 :(得分:1)

您可以使用以下

generated always as identity

它将显示提交消息和差异。

答案 1 :(得分:0)

Xsession: X session started for <user> at Di 21. Feb 08:35:01 CET 2017 dbus-update-activation-environment: setting DISPLAY=:1 dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1 X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 109 (X_ChangeHosts) Value in failed request: 0x5 Serial number of failed request: 6 Current serial number in output stream: 8 localuser:<user> being added to access control list X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 109 (X_ChangeHosts) Value in failed request: 0x5 Serial number of failed request: 6 Current serial number in output stream: 8 openConnection: connect: No such file or directory cannot connect to braille devices daemon brltty at :0 Incompatible XKB server support dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1 dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 dbus-update-activation-environment: setting QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1 Error: couldn't find RGB GLX visual or fbconfig OpenGL version not found. dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s dbus-update-activation-environment: setting VNCDESKTOP=X dbus-update-activation-environment: setting MAIL=/var/mail/<user> dbus-update-activation-environment: setting SSH_CLIENT=xx.xxx.xx.xx 54876 22 dbus-update-activation-environment: setting USER=<user> dbus-update-activation-environment: setting LANGUAGE=en_US: dbus-update-activation-environment: setting LC_TIME=de_DE.UTF-8 dbus-update-activation-environment: setting SHLVL=1 dbus-update-activation-environment: setting HOME=/home/<user> dbus-update-activation-environment: setting OLDPWD=/home/<user>/.vnc dbus-update-activation-environment: setting SSH_TTY=/dev/pts/0 dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge dbus-update-activation-environment: setting QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 dbus-update-activation-environment: setting LC_MONETARY=de_DE.UTF-8 dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-x72bVPIADb,guid=db78e03690370c91adb4424458abeda5 dbus-update-activation-environment: setting IM_CONFIG_PHASE=1 dbus-update-activation-environment: setting LOGNAME=<user> dbus-update-activation-environment: setting _=/usr/bin/vncserver dbus-update-activation-environment: setting TERM=xterm dbus-update-activation-environment: setting PATH=/home/<user>/bin:/home/<user>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games dbus-update-activation-environment: setting LC_ADDRESS=de_DE.UTF-8 dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000 dbus-update-activation-environment: setting DISPLAY=:1 dbus-update-activation-environment: setting LC_TELEPHONE=de_DE.UTF-8 dbus-update-activation-environment: setting LANG=en_US dbus-update-activation-environment: setting XKL_XMODMAP_DISABLE=1 dbus-update-activation-environment: setting LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: dbus-update-activation-environment: setting SHELL=/bin/bash dbus-update-activation-environment: setting SHELL=/bin/bash dbus-update-activation-environment: setting LC_NAME=de_DE.UTF-8 dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 dbus-update-activation-environment: setting LESSCLOSE=/usr/bin/lesspipe %s %s dbus-update-activation-environment: setting LC_MEASUREMENT=de_DE.UTF-8 dbus-update-activation-environment: setting LC_IDENTIFICATION=de_DE.UTF-8 dbus-update-activation-environment: setting PWD=/home/<user> dbus-update-activation-environment: setting SSH_CONNECTION=xx.xxx.xx.xx 54876 xx.xxx.xx.xx 22 dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop dbus-update-activation-environment: setting LC_NUMERIC=de_DE.UTF-8 dbus-update-activation-environment: setting LC_PAPER=de_DE.UTF-8 dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1 将显示当前和最后一次提交之间的差异

git diff HEAD^将显示当前和任何提交之间的差异

您也可以使用HEAD~3返回3次提交等