Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

github checkout

# Open/checkout a previous branch
git checkout <existing-branch>

# Open/checkout a previous commit
git checkout <commit> [when commit is not a branch name

# Create a new branch from current branch
git checkout -b <new-branch>

# Create a new branch from existing-branch
git checkout -b <new-branch> <existing-branch>

# Go/Checkout to last commit or branch reset
git checkout .
Comment

PREVIOUS NEXT
Code Example
Shell :: how to restore default apache httpd conf file 
Shell :: git alias variables 
Shell :: composer v2 
Shell :: git commit with message 
Shell :: kubernetes force delete command 
Shell :: git restoring deleted files 
Shell :: git ultiple branch delete 
Shell :: how to scp 
Shell :: how to scan for raspberry pi on network windows 
Shell :: bash setting home 
Shell :: how to compile a python prohram that uses PyQt 
Shell :: relead ngix 
Shell :: regex last word in lin 
Shell :: windows search multiple file types 
Shell :: ionic icon dimensions 
Shell :: linux edit crontab via script 
Shell :: php 7.4 raspberry pi 
Shell :: how to overwrite main branch git 
Shell :: github create a new repository on the command line 
Shell :: if statement bash 
Shell :: Amend The Most Recent Commit in git command 
Shell :: docker remove 
Shell :: git cherry pick parts of a commit 
Shell :: page rank example 
Shell :: letsencrypt error 
Shell :: scp command 
Shell :: vagrant 
Shell :: git combine two branches into third 
Shell :: kuberetes config 
Shell :: merging a branch to master 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =