Skip to content

hsayram/data-engineer-ultimate-cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Cheatsheet

SSH

Description Command
Check existing SSH keys cd ~ & ls -la .ssh/
Generate SSH key (ed25519) ssh-keygen -t ed25519 -C "[email protected]"
Generate SSH key (rsa) ssh-keygen -t rsa -b 4096 -C "[email protected]"
Copy public SSH key to clipboard pbcopy < ~/.ssh/id_ed25519.pub
Copy public SSH key manually cat ~/.ssh/id_ed25519.pub

Git

Description Command
Init local repository git init
Track file git add <filename>
Track multiple files git add --all
Track entire folder git add .
Add remote repo git remote add origin <repo_url>
Add commit git commit -m "Commit message"
Push first commit to remote repo git push -u origin main
Push changes to remote repo git push origin main
View repository status git status
View commits history git log
View shortened commits history git log --oneline
Quit from log Press "Q" on a keyboard
Edit last commit (HEAD) Make changes (e.g. git add <missed file>) and then git commit --amend --no-edit
Edit last commit's message git commit --amend -m "Edited message"

File states

graph LR;
  untracked -- "git add" --> staged;
  staged    -- "git commit"     --> tracked/comitted;

%% стрелка без текста для примера: 
  A --> B;
Loading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published