Skip to main content

Git Repo ↔ collection of Commits for project Diff history

aka Repo, Repos

References

  1. status ↔ to show state of Git Repo; list files in Staging/untracked/Commit History

  2. git remote ↔ to print list of all remote connected Git Repo

  3. git remote add origin _URL ↔ to add remote Git Repo w name of origin at _URL

  4. remote ↔ to link local Git Repo to remote Git Repo

  5. git remote -v ↔ to print remote Git Repo name & URL

  6. git remote show ↔ to print details for remote Git Repo incl Branch

  7. push ↔ to sync local Git Repo to remote

  8. fetch ↔ to download Diff in remote Git Repo

  9. git pull origin master ↔ to download remote Git Repo named origin & merge with local repo named master

  10. git clone _URL newName ↔ to clone remote Repo (at _URL) to local machine & rename to newName

  11. github codespace ↔ (feat)(paywall) to open github Repo in online cloud IDE playground

  12. github ↔ MS online Git Repo SaaS

  13. clone ↔ to download copy of remote Git Repo/Diff to local repo

  14. origin ↔ (default) name for remote Repo

  15. --force ↔ flag to overwrite Commit History on remote Repo

  16. git log --graph --oneline --decorate ↔ to print Commit History as colorized ASCII graph (only applies to Repo with Branches )

  17. Docker HubDocker Image Repo, CI/CD triggers/Webhook, github integration

  18. degitDev tool to clone Git Repo, auto find latest commit, download ass .tar - essentially alias for git clone --depth 1 _SOMEGITREPOURL

  19. git remote add upstream _URL ↔ to sync local Repo w Upstream Github Repo

  20. Github Reporemote Repo host on github.com

  21. bfg ↔ fast alt to git-filter-branch to go 1984 on Git Repo - no filepath support, only discrete filename/foldername - RISKY! outputs changelog to .git.bfg-report

  22. git push --force origin __branch ↔ to push local Commit to remote Repo & FORCE sync to local (discard remote history) 🔥 bad for teamwork!

  23. git push -u origin master ↔ to push local Git Repo Branch at Master to remote Repo

  24. git push --force-with-lease origin __branch ↔ to push local Commit to remote Repo & SAFELY sync (avoid overwrite remote history) ✅ often mandatory to not get fired!