|
| 1 | +git init |
| 2 | + |
| 3 | +git config --global user.name "My name" |
| 4 | +git config --global user.email " [email protected]" |
| 5 | + |
| 6 | +git clone [email protected]:pydata/xarray.git |
| 7 | +git clone ../some_test_repo.git |
| 8 | + |
| 9 | +git status |
| 10 | + |
| 11 | +git commit |
| 12 | +git commit -a |
| 13 | +git commit -am 'Fix mean bug in calculation of energy' |
| 14 | +git commit -m 'Clone notebooks to make personal ones' |
| 15 | + |
| 16 | +git add . |
| 17 | +git add analysis_pr.ipynb |
| 18 | +git add figures_and_tables/ |
| 19 | +git add -p |
| 20 | + |
| 21 | +git checkout v0.22.0 |
| 22 | +git checkout v0.23.0 |
| 23 | +git checkout clean |
| 24 | +git checkout -b feature_branch origin/master |
| 25 | +git checkout master |
| 26 | +git checkout origin/master |
| 27 | + |
| 28 | +git checkout figures_and_tables/ |
| 29 | + |
| 30 | +git log |
| 31 | +git log --decorate --graph --all --stat --pretty=fuller |
| 32 | +git log --all --author=Regner |
| 33 | + |
| 34 | +git diff analysis_ck.ipynb |
| 35 | +git diff |
| 36 | +git diff --stat |
| 37 | +git diff -w |
| 38 | +git diff --color-words=. |
| 39 | +git diff --cached |
| 40 | +git difftool |
| 41 | +git diff 3bbb31 |
| 42 | +git diff 3bb931..HEAD~ |
| 43 | + |
| 44 | +git branch |
| 45 | +git branch new_branch |
| 46 | +git branch -D new_branch |
| 47 | +git branch -d new_branch |
| 48 | + |
| 49 | +git merge --abort |
| 50 | +git merge secret |
| 51 | + |
| 52 | +git rebase |
| 53 | +git rebase origin/lebertron-makefile |
| 54 | + |
| 55 | +git cherry-pick --abort |
| 56 | +git cherry-pick d8f8242b0 |
| 57 | + |
| 58 | +git fetch |
| 59 | +git fetch origin |
| 60 | + |
| 61 | +git pull |
| 62 | +git pull -r |
| 63 | +git pull -r clean_repo |
| 64 | + |
| 65 | +git push |
| 66 | +git push clean_repo HEAD:master |
| 67 | +git push lumbric |
| 68 | +git push --set-upstream origin master\n |
| 69 | + |
| 70 | +.gitignore |
| 71 | + |
| 72 | +git stash |
| 73 | +git stash apply |
| 74 | +git stash show stash@{0} -p |
| 75 | +git stash save my_foobar |
| 76 | + |
| 77 | +git reflog |
| 78 | + |
| 79 | +git log -G non_existing_country |
| 80 | +git log -G 'window must be non-negative' |
| 81 | + |
| 82 | +git show |
| 83 | +git show 93be7d6c5354 |
| 84 | +git show d8fc82c74720210a8c24df364fc07d0604b6a9 | patch -p1 |
| 85 | +git show HEAD~ |
| 86 | + |
| 87 | +git reset |
| 88 | +git reset --hard HEAD~ |
| 89 | +git reset data_download/ |
| 90 | +git reset neovim/init.vim |
| 91 | +git reset --hard origin/master |
| 92 | + |
| 93 | +git remote |
| 94 | +git remote add lumbric [email protected]:lumbric/xarray.git |
| 95 | +git remote add origin [email protected]:lumbric/git-games.git |
| 96 | +git remote remove origin |
| 97 | +git remote -v |
| 98 | + |
| 99 | +git rebase -i HEAD~7 |
| 100 | +git commit --amend |
| 101 | +git commit backend/ --fixup a18e3fd5e |
| 102 | + |
| 103 | +git revert dc54b83f3f |
| 104 | + |
| 105 | +git branch --contains 40fa7cc9714b8da3a92b5a494879b4fb9ee649 |
| 106 | + |
| 107 | +git clean |
| 108 | +git clean -f |
| 109 | +git clean -n |
| 110 | + |
| 111 | +git tag |
| 112 | +git tag v1 -m 'First completely printed version' |
| 113 | +git tag v5 -m 'Two pieces screwed, fix a bug in v4' |
| 114 | +git tag list |
| 115 | +git tag -d v3.50.0 |
| 116 | + |
| 117 | +git remote add origin [email protected]/lumbric/git-games |
| 118 | + |
| 119 | +git rm regional_matching_1.csv |
| 120 | + |
| 121 | +git am 0002-Use-tidyverse-instead-of-openxlsx-for-xlsx-files.patch |
| 122 | +git format-patch HEAD~3 |
| 123 | +git format-patch HEAD~2..HEAD |
| 124 | + |
| 125 | +git filter-branch -f --tree-filter "find . -type f -exec sed -i -e 's/MY_PASSWORD/<snip>/g' {} \;" |
| 126 | + |
| 127 | +git grep |
| 128 | + |
| 129 | +git blame config.py |
| 130 | + |
| 131 | +git submodule update --recursive --init |
| 132 | + |
| 133 | +git bisect bad |
| 134 | +git bisect bad aba18 |
| 135 | +git bisect abort |
| 136 | +git bisect good |
| 137 | +git bisect reset |
| 138 | +git bisect start |
| 139 | +git bisect visualize |
| 140 | + |
| 141 | +git revert a241d8fa51 |
| 142 | + |
| 143 | +git describe --abbrev=0 --match 'v*' |
| 144 | + |
| 145 | +git ls-files |
| 146 | + |
| 147 | +git rebase --autosquash -i HEAD~6 |
| 148 | + |
| 149 | +git worktree |
| 150 | +git worktree |
| 151 | +git worktree add |
| 152 | +git worktree add ~/newoekotex-worktree |
| 153 | +git worktree add ../oekotex-leather-worktree |
| 154 | +git worktree add ../oekotex-leather-worktree asp-alternative-design |
| 155 | +git worktree add /tmp/wt1 HEAD\^1 |
| 156 | +git worktree add ../x |
| 157 | +git worktree list |
| 158 | +git worktree prune |
| 159 | +git worktree st |
| 160 | +git worktree --version |
| 161 | + |
| 162 | +git check-ignore |
| 163 | + |
| 164 | +git subtree |
| 165 | +git subtree add |
| 166 | +git subtree add --prefix=./some-path HEAD |
| 167 | +git subtree list |
0 commit comments