Skip to content

AntonyHanna/git-cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

git-cheat-sheet

A cheat sheet of the git commands I use

Clone a Repository

Clones a git repository from a source such as github to your local device.

git clone <reopository>

Pull changes from origin

Compares the differences between your local repo and the origin, then pulls the changes to the local repo.

git pull

Check the difference between origin and local

Lists all modified files and their changes from the original.

git diff

Check the difference between a file on origin and local

Lists the changes of the file compared to the original

git diff <file name>

Check the status of tracked and untracked files

Tells you whether a file is tracked or not as well as if they've been modified or not.

git status

Track a file

Track a file by adding it to the commit

git add <file name>

Remove a file or piece of code from commit

git reset <file name>

Commit a specific code block from feil

git add -p <file name>

Reset a file to original state

git reset <file name>
git checkout <file name>

About

A cheat sheet of the git commands I use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors