Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

switch to previous branch git

# command
git checkout -

# details
: 'This command allows you to quickly switch to the previously checked out
branch. On a general note - is an alias for the previous branch. It can be 
used with other commands as well. I aliased checkout to co so, it becomes 
just git co -'
Comment

git go to previous branch

git checkout -
Comment

git move branch to previous commit

git checkout 1258f0d0aae    #detach from master
git branch -f master HEAD   #exactly as above

#optionally reattach to master
git checkout master
Comment

PREVIOUS NEXT
Code Example
Shell :: discard all changes git 
Shell :: install best torrent app for linux 
Shell :: ubuntu version command line 
Shell :: git look at changes to a file 
Shell :: stop nginx service 
Shell :: git push reset 
Shell :: git lfs add file 
Shell :: git find current head 
Shell :: env variables list 
Shell :: git clone in 
Shell :: Module enzyme-to-json/serializer in the snapshotSerializers option was not found. <rootDir is 
Shell :: shell script mac 
Shell :: kill process from pid 
Shell :: Redis::CommandError: MISCONF Redis is configured to save RDB snapshot 
Shell :: Install Zenkit on Linux 
Shell :: ionic Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation. 
Shell :: bash how to delete ^M at the end of every line 
Shell :: pipe command in linux 
Shell :: install discord 
Shell :: View total data received and sent (Linux) 
Shell :: uninstall your phone app windows 10 
Shell :: git diff two commits one file 
Shell :: Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user. 
Shell :: pwd linux 
Shell :: how to branch from a branch in git 
Shell :: install bootstrap via npm 
Shell :: adobe acrobat reader for linux download 
Shell :: portainer install 
Shell :: bash merge pdf 
Shell :: create scheduled task via powershell scheduled reboot 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =