File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ And run the init script. This installs the git hooks and initialize the submodul
42
42
(optional) Add your remote:
43
43
```
44
44
git remote add origin GIT_URL
45
- git checkout -b master --track origin/master
46
- git push
45
+ git push -u origin master
47
46
```
48
47
49
48
@@ -57,14 +56,15 @@ git init /
57
56
Add your remote:
58
57
``` sh
59
58
git remote add origin GIT_URL
60
- git checkout -b master --track origin/master
59
+ git fetch origin
60
+ git branch --track " master" " origin/master"
61
61
```
62
62
63
63
Use either:
64
64
``` sh
65
- git reset --mixed origin/master
65
+ git reset --mixed && git checkout-index -a
66
66
# or
67
- git reset --hard origin/master
67
+ git reset --hard && git checkout-index -a
68
68
```
69
69
to restore your files. ` --mixed ` only write non-existing files. ` --hard ` overwrites all files.
70
70
You can’t perform that action at this time.
0 commit comments