diff --git a/git/README.md b/git/README.md new file mode 100644 index 0000000..4dc00f8 --- /dev/null +++ b/git/README.md @@ -0,0 +1 @@ +made in inkscape diff --git a/git/git_cheatsheet.svg b/git/git_cheatsheet.svg new file mode 100644 index 0000000..f07f815 --- /dev/null +++ b/git/git_cheatsheet.svg @@ -0,0 +1,1159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + work-space + + + + staging(index) + + + + localrepo + + + + remote + + + + stash + + + + rm + + + + + commit -a + + + + + pull + + + + + reset --hard remote/branch + + + + fetch + + + + merge / rebase + + + + checkout HEAD / reset --hard + + + + reset --soft + + + + checkout + + + + + add + + + + commit + + + + push + + + + stash apply + + + + + stash + + + -m "message" + CC-BY-NC-SA 4.0 / based on works by Patrick Zahnd, Matthew Harrison, Hylke Bons, Zack Rusin, Sébastien Pierre + + branch + + + + checkout -b BRANCH OTHER + + + + + + + + + + + + + + + + + + + + + + + + + + diff + --base FILE +--ours FILE +--theirs FILE + + --force + +Create + from existing data + cd project_directory/git initgit add + from remote repository + git clone /path/to/repo /new/repogit clone git://host.tld/project.gitgit clone ssh://user@host.tld/project + Git Cheat Sheet + git tag v0.1.0 HEAD + ?Show info + git statusgit refloggit show + * marks current branch + git config author.name "Helix"git config author.email "helix@tilde.fun" + https://wiki.tilde.fun/dev/git + getlatestchanges + git branch + git log -p FILE/DIR + git blame FILE + change dates+authors + + --rebase, --[no-]recurse-submodules, --[no-]ff[-only] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +