git

Learn

  • Practise: https://learngitbranching.js.org/?locale=en_US

  • Cheatsheet

    • 4 Pages: https://about.gitlab.com/images/press/git-cheat-sheet.pdf

    • 2 Pages: https://education.github.com/git-cheat-sheet-education.pdf

    • 2 Pages: https://www.atlassian.com/dam/jcr:8132028b-024f-4b6b-953e-e68fcce0c5fa/atlassian-git-cheatsheet.pdf

  • Books

    • https://git-scm.com/book/en/v2

my functions:

Workflow

https://stackoverflow.com/questions/3689838/whats-the-difference-between-head-working-tree-and-index-in-git

working tree don't include untracked files

commit

log

branch and merge

Undo

https://www.atlassian.com/git/tutorials/resetting-checking-out-and-reverting

https://stackoverflow.com/questions/3639342

stashing

remote and push

https://git-scm.com/book/en/v2/Git-Internals-The-Refspec

delete remote branch

config

Proxy

filter-branch

https://manishearth.github.io/blog/2017/03/05/understanding-git-filter-branch/

Remove File

Unpushed commit

Every commit

from Github

https://help.github.com/articles/removing-sensitive-data-from-a-repository/

rebase

https://git-scm.com/book/en/v2/Git-Branching-Rebasing

fork

https://stackoverflow.com/questions/14587045/how-to-merge-branch-of-forked-repo-into-master-branch-of-original-repo

Submodules

https://git-scm.com/book/en/v2/Git-Tools-Submodules treat the two projects as separate yet still be able to use one from within the other.

Github API

https://developer.github.com/v3/repos/

Download by tag

curl Github

https://github.com/settings/tokens

Query latest release

Github

check watchers: https://github.com/{user}/{project}/watchers

Self-host git servers

Go: https://github.com/go-gitea/gitea Go: https://github.com/gogs/gogs Ruby: https://gitlab.com/gitlab-org/gitlab

Tools

curl -L https://github.com...?raw=true .html to page, etc: https://rawgit.com/ .js CDN: https://cdnjs.com/ https://cdn.jsdelivr.net/gh/user/repo@version/file .ipynb fast open: http://nbviewer.jupyter.org/

Tools

Code search: https://about.sourcegraph.com/ download: https://minhaskamal.github.io/DownGit/#/home

Last updated

Was this helpful?