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 :: add user to group 
Shell :: ubuntu rename user login 
Shell :: start apache service 
Shell :: heroku git remote 
Shell :: docker stop and remove specific container 
Shell :: how to delete installed library from react native project 
Shell :: instal yay arch linux 
Shell :: how to check crontab list 
Shell :: remove apt docker 
Shell :: install vlc fedora 
Shell :: get y.output file yacc remove shift reduce conflict 
Shell :: git rebase an origin branch into my branch 
Shell :: bash lowercase 
Shell :: create gitignore 
Shell :: vite starting comand 
Shell :: download torrent in linux terminal 
Shell :: grav permissions 
Shell :: git commit back in time 
Shell :: grep --include 
Shell :: config git ftp 
Shell :: delete a line starting with sed 
Shell :: vim cant open file for writing 
Shell :: remove all files inside directory linux 
Shell :: how to add application to unity launcher 
Shell :: vercel cli 
Shell :: how to install apple music ubuntu 
Shell :: install zsh 
Shell :: install cairo 
Shell :: how to install vs code on fedora 
Shell :: rm except one file 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =