Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

check changes after git pull

The very first line in the output of a pull looks like this:

$ git pull
Updating 37b431a..b2615b4

So to get the diff between before and after pull request, use --> 
$ git diff 37b431a..b2615b4
Comment

show changes at time of git pull

git log --name-status -2

# Will show you the names of the files that changed for the last two commits.

git log -p -2
# Will show you the changes themselves.

## =================================
## Before you pull,

git fetch
git log --name-status origin/master..
# Will show you what commits you are about to retrieve, along with the names of the files.


.
Comment

check changes after git pull

The very first line in the output of a pull looks like this:

$ git pull
Updating 37b431a..b2615b4

So to get the diff between before and after pull request, use --> 
$ git diff 37b431a..b2615b4
Comment

show changes at time of git pull

git log --name-status -2

# Will show you the names of the files that changed for the last two commits.

git log -p -2
# Will show you the changes themselves.

## =================================
## Before you pull,

git fetch
git log --name-status origin/master..
# Will show you what commits you are about to retrieve, along with the names of the files.


.
Comment

PREVIOUS NEXT
Code Example
Shell :: create a file in vim 
Shell :: linux create directory with permissions 
Shell :: linux grep recursive 
Shell :: how to revert to a specific commit 
Shell :: how to install gimp in ubuntu 
Shell :: how to install blackeye bash 
Shell :: linux how to check version of package 
Shell :: git log my commits 
Shell :: install vlc ubuntu 
Shell :: git switch vs checkout 
Shell :: git global config location 
Shell :: restart mosquitto 
Shell :: Cannot make for rpm, the following external binaries need to be installed: rpmbuild 
Shell :: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? 
Shell :: search in history command windows 
Shell :: git stash drop 
Shell :: install packages from jupyter notebook 
Shell :: ! [remote rejected] main - main 
Shell :: sudo cd 
Shell :: error: unknown command "neat" for "kubectl" 
Shell :: powershell run bat file 
Shell :: linux test examples 
Shell :: wsl add directory to path 
Shell :: expo font install 
Shell :: remove a package ubuntu 
Shell :: install aws cli on windows 
Shell :: install entityframeworkcore nuget in asp.net core 3.0 
Shell :: Not Found The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at localhost Port 80 
Shell :: Install-Package MailKit 
Shell :: bash switch case 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =