Knowledge Base

308 copy-ready commands with fill-in variables, plus step-by-step installation guides.

Installation Guides 11

Categories

Installation Guides (11)

Tags

21 results

Git & GitHub

Initialize a New Repository

git init -b main
#git #init
3 views 0 copies
Git & GitHub

Check Status and Recent Log

git status
#git #status
3 views 0 copies
Git & GitHub

Stage and Commit Changes

git add {{files}}
#git #add
3 views 0 copies
Git & GitHub

Push Branch to Remote

git push -u {{remote}} {{branch}}
#git #push
3 views 0 copies
Git & GitHub

Pull with Rebase

git pull --rebase {{remote}} {{branch}}
#git #pull
3 views 0 copies
Git & GitHub

Merge a Branch into Current

git checkout {{target_branch}}
#git #merge
3 views 0 copies
Git & GitHub

Delete a Branch

git branch -d {{branch}}
#git #delete
4 views 0 copies
Git & GitHub

Interactive Rebase (Squash Commits)

git rebase -i HEAD~{{commit_count}}
#git #rebase
3 views 0 copies
Git & GitHub

Show Staged and Unstaged Diffs

git diff
#git #diff
3 views 0 copies
Git & GitHub

Create and Push a Release Tag

git tag -a {{tag_name}} -m "{{message}}"
#git #tag
3 views 0 copies
Git & GitHub

Discard Changes in a File

git checkout -- {{file}}
#git #discard
3 views 0 copies
Git & GitHub

View Commit History of a File

git log --oneline --follow {{file}}
#git #log
3 views 0 copies
Git & GitHub

Show Who Changed Each Line

git blame {{file}}
#git #blame
3 views 0 copies
Git & GitHub

Add a Remote Repository

git remote add {{remote_name}} {{remote_url}}
#git #remote
3 views 0 copies
Git & GitHub

Fetch and Prune Deleted Remote Branches

git fetch --all --prune
#git #fetch
3 views 0 copies
Git & GitHub

Generate SSH key for GitHub

ssh-keygen -t ed25519 -C "{{email}}" -f ~/.ssh/id_ed25519_github && echo '--- CO...
#git #github
3 views 0 copies
Git & GitHub

Clone repository via SSH

git clone git@github.com:{{owner}}/{{repo}}.git
#git #clone
3 views 0 copies
Git & GitHub

Create and switch to new branch

git checkout main && git pull && git checkout -b {{branch_name}}
#git #branch
3 views 0 copies
Git & GitHub

Git Stash and Apply

git stash push -m "{{message}}"
#git #stash
3 views 0 copies
Git & GitHub

Git Cherry-pick a Commit

git cherry-pick {{commit_hash}}
#git #cherry-pick
4 views 0 copies
Git & GitHub

Undo Last Git Commit (Keep Changes)

git reset --soft HEAD~1
#git #reset
3 views 0 copies