coding/git.md
... ...
@@ -10,6 +10,17 @@ roll back hard
10 10
git reset --hard <commit/tag>
11 11
```
12 12
13
+force push of a previous commit
14
+```
15
+git push -f origin <commit_id>:<branch>
16
+```
17
+
18
+reset local branch after a forced-update (above)
19
+```
20
+git fetch
21
+git reset origin/<branch> --hard
22
+```
23
+
13 24
set username for [single repo][]
14 25
```
15 26
git config user.username 'name'