Home DevOps GIT Flashcards

GIT Flashcards

by admin

I’ve created these flashcards on GIT as I’m a bit of a refresher – maybe useful to some as a memory aid if you’re starting out with git, or haven’t used it for some time!

[flashcard source=”https://buildvirtual.net/wp-content/uploads/2019/11/git-flashcards.txt” show=”back”]

Flash Card Contents

git revert	Undo a change for a commit, but doesn't remove from project history
git remote -v	Show remote repos tracked by the local repo
git init	Create local git repo
git push	Send changes to a remote repo
git init --bare	Create git repo with no working tree
git gc --prune	Cleans up the git database
git tag -a	Tags a commit 
git commit -a -m	Adds an existing file whilst doing a commit
git config	Used to set config parameters for a repo
git pull	Pulls updates from a remote repo
git status	Shows current status of the staging area
.gitignore	Used to specify files for git to ignore
git mergetool	Used to help resolve merge conflicts
git branch -d	Removes a branch from a repo
git log --graph	Shows a graph representation of a repo's history
git config --global	Sets global configuration settings
git rm	Removes a file from being tracked by git
git fetch	Pulls updates from a remote repo, but doesn't commit them locally
HEAD	Pointer that signifies which branch is being used
git diff	Shows differences between files/commits
git rebase	Replays series of commits from one branch to another
git commit -m	Commits to local repo
git checkout	Changes focus to another branch
git merge	Combines two branches 
git branch	Creates a new branch
git clone	Used to copy/duplicate a local/remote repo
git --version	Verify the git version being used
man git	View git man pages
git rm --cached	Remove from git without deleting the file

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More