0% found this document useful (0 votes)
36 views3 pages

Git Commands Cheat Sheet

The document provides commands for using Git, specifically for viewing the history of commits with 'git log'. It also explains how to link a local branch to a remote repository on GitHub using 'git push --set-upstream origin dev2' or 'git push -u origin dev2'.

Uploaded by

sheik8610
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views3 pages

Git Commands Cheat Sheet

The document provides commands for using Git, specifically for viewing the history of commits with 'git log'. It also explains how to link a local branch to a remote repository on GitHub using 'git push --set-upstream origin dev2' or 'git push -u origin dev2'.

Uploaded by

sheik8610
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

To get the history of commits : git log

Linking a local branch(system or lap) to remote repo(github) : git push --set-upstream origin dev2

git push -u origin dev2

You might also like