Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model...
Transcript of Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model...
![Page 1: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/1.jpg)
Git commands
These slides have been reformatted from Mark Lodato’s http://marklodato.github.com/visual-git-guide/index-svg.html
![Page 2: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/2.jpg)
Basic model
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 3: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/3.jpg)
h"p://osteele.com/images/2008/git‐transport.png
![Page 4: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/4.jpg)
Git object model
h"p://utsl.gen.nz/talks/git‐svn/git‐model.png
![Page 5: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/5.jpg)
Elements of diagrams
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 6: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/6.jpg)
diff
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 7: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/7.jpg)
commit
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 8: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/8.jpg)
commit below HEAD
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 9: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/9.jpg)
commit --amend
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 10: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/10.jpg)
checkout
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 11: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/11.jpg)
checkout that moves HEAD
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 12: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/12.jpg)
commit with detached HEAD
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 13: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/13.jpg)
losing a commit
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 14: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/14.jpg)
avoiding loss of commit
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 15: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/15.jpg)
reset
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 16: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/16.jpg)
reset with no commit
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 17: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/17.jpg)
reset with filename
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 18: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/18.jpg)
merge
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 19: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/19.jpg)
“recursive” merge
h"p://marklodato.github.com/visual‐git‐guide/index‐svg.html
![Page 20: Git commands - Florida State Universitybaker/swe2/restricted/notes/gitcommands.pdfBasic model hp://marklodato.github.com/visual‐git‐guide/index‐svg.html](https://reader034.fdocuments.in/reader034/viewer/2022042303/5ece0d5b60bf56675a06be5f/html5/thumbnails/20.jpg)