Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git checkout next commit

git checkout $(git rev-list --topo-order HEAD..towards | tail -1)

# where towards is a SHA1 of the commit or a tag.

Example: git checkout $(git rev-list --topo-order HEAD..main | tail -1)

# Will move 1 commit towards the last commit of the main branch
Comment

PREVIOUS NEXT
Code Example
Shell :: bash yaml parser library 
Shell :: git checkout all deleted files 
Shell :: bash grep all after match 
Shell :: mongo activate 
Shell :: install react redux 
Shell :: jupyter lab download 
Shell :: linux stop running script 
Shell :: how to cancel a scheduled shutdown or reboot with shutdown command 
Shell :: fedora 35 to 36 upgrade 
Shell :: stash pop single file 
Shell :: stop avd 
Shell :: github delete branch remote 
Shell :: conda install gdal 
Shell :: how to empty text file in unix 
Shell :: command not found pipenv zsh 
Shell :: download chrome on ubuntu 20.04 unsupported file 
Shell :: access wsl files from windows 
Shell :: vite js 
Shell :: oh-my-zsh 
Shell :: Kubernetes configuration file is group-readable 
Shell :: manjaro linux system information 
Shell :: zip directory in linux 
Shell :: git diff between one file 
Shell :: git merge a branch to master/main 
Shell :: powershell verb 
Shell :: notepad++ alternative 
Shell :: add alias fish shell 
Shell :: git a clean history 
Shell :: pip install cookiecutter 
Shell :: remove last commit from remote 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =