tags: GIT

切換分支

查看分支

git log --oneline --graph --all --decorate

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

切換分支

假設要將版本切換回7bb0a5a版號,版本就會切換

git checkout 7bb0a5a

情境

今日將程式git pull上線,但PM突然說先不要上,所以我們先將程式git checkout切換回去舊版本,那在我們下次git pull時,需先將程式git checkout master切換回上次上線版本