Wednesday, July 1, 2020

Git tipsheet


Great GIT tip sheet here:
https://www.reddit.com/r/git/comments/bwwqr3/git_cheat_sheet/


The following are git commands that I found useful:

To create a new branch with your existing content (you're already linked to a remote origin)
git checkout -b newbranchname

To see difference between branches:
git diff gitlogid file_that_you_want_to_see_diff

To merge two branches:
git merge

To look at git log more carefully:
git log --oneline --graph --all




No comments:

Post a Comment