It looks like you are looking for the fetch command
git-fetch
Selects names or tags from one or more other repositories along with the objects needed to complete them.
Link names and their object names from the extracted links are stored in .git / FETCH_HEAD. This information remains for the subsequent merge operation performed with git merge.
In practice, fetch gets all named commits from a remote repository. This means that when you go to the original incident, the source / master will be updated to indicate the last change in origin, but your local master will not be merged or changed to reflect these changes.
I assume that you are working on a (local) master, which is a remote branch of origin / master tracking. Your branch names may differ, but the process is the same.
Now you can create a temp branch to perform start / wizard checks by doing
git checkout -b temp_branch_name origin/master
which will create a temp branch that now points to the latest history in the remote repository.
When you finish testing and want to integrate, you can either do
git checkout master git merge origin/master
which will perform normal merging (as pull would be done) or
git checkout master git rebase origin/master
if you prefer to reinstall your changes to get a linear history.
Kai inkinen
source share