#separator:tab
#html:false
#tags column:4
Git	A version control system that tracks changes to files		tech-git-commands
Repository (repo)	A project folder tracked by Git		tech-git-commands
Create a new repository	git init		tech-git-commands
Copy a repository	git clone <url>		tech-git-commands
See what has changed	git status		tech-git-commands
Stage a file	git add file.txt		tech-git-commands
Stage everything	git add .		tech-git-commands
Commit staged changes	git commit -m 'message'		tech-git-commands
Commit	A saved snapshot of the project		tech-git-commands
Commit message	A short note describing the change		tech-git-commands
Staging area (index)	Where changes wait before committing		tech-git-commands
Working directory	Your project files as they currently are		tech-git-commands
View history	git log		tech-git-commands
View history briefly	git log --oneline		tech-git-commands
See changes not yet staged	git diff		tech-git-commands
See staged changes	git diff --staged		tech-git-commands
Branch	A separate line of work		tech-git-commands
List branches	git branch		tech-git-commands
Create a branch	git branch name		tech-git-commands
Switch branch	git switch name		tech-git-commands
Create and switch to a branch	git switch -c name		tech-git-commands
Old switch command	git checkout name		tech-git-commands
Merge a branch	git merge name		tech-git-commands
Merge conflict	When Git can't combine changes automatically		tech-git-commands
Resolve a conflict	Edit the file, remove markers, then add and commit		tech-git-commands
Delete a branch	git branch -d name		tech-git-commands
main branch	The default primary branch		tech-git-commands
Remote	A copy of the repository on a server		tech-git-commands
Origin	The usual name of the main remote		tech-git-commands
Add a remote	git remote add origin <url>		tech-git-commands
Show remotes	git remote -v		tech-git-commands
Send commits to a remote	git push		tech-git-commands
First push of a branch	git push -u origin name		tech-git-commands
Get new commits from remote	git fetch		tech-git-commands
Fetch and merge from remote	git pull		tech-git-commands
Undo staging of a file	git restore --staged file		tech-git-commands
Discard local changes to a file	git restore file		tech-git-commands
Undo the last commit but keep changes	git reset --soft HEAD~1		tech-git-commands
Make a new commit that undoes a commit	git revert <hash>		tech-git-commands
Fix the last commit message	git commit --amend		tech-git-commands
Temporarily save changes	git stash		tech-git-commands
Bring back stashed changes	git stash pop		tech-git-commands
Tag a commit	git tag v1.0		tech-git-commands
HEAD	A pointer to the current commit		tech-git-commands
Hash	The unique ID of a commit		tech-git-commands
Rebase	Move commits onto a new base for a straight history		tech-git-commands
Cherry-pick	Copy one commit onto another branch		tech-git-commands
Fork	Your own copy of someone else's repository		tech-git-commands
Pull request (PR)	A request to merge your branch into another		tech-git-commands
Code review	Teammates read and comment on changes		tech-git-commands
GitHub	A website hosting Git repositories		tech-git-commands
GitLab	Another site for hosting Git repositories		tech-git-commands
Issue	A task or bug report on GitHub		tech-git-commands
Clone vs fork	Clone copies to your computer; fork copies to your account		tech-git-commands
README	A file describing a project		tech-git-commands
License	A file saying how others may use the code		tech-git-commands
Gitignore	A file listing what Git should not track		tech-git-commands
Linus Torvalds	Created Git in 2005		tech-git-commands
Diff	The difference between two versions of files		tech-git-commands
Blame	git blame shows who last changed each line		tech-git-commands
Bisect	git bisect finds the commit that introduced a bug		tech-git-commands
Detached HEAD	Being on a commit that is not at the tip of a branch		tech-git-commands
Force push	git push --force overwrites remote history; use with great care		tech-git-commands
Never commit	Passwords, tokens or secret keys		tech-git-commands
Commit often	Small commits are easier to understand		tech-git-commands
Feature branch	A branch made for one new feature		tech-git-commands
Continuous integration (CI)	Tests run automatically when code is pushed		tech-git-commands
