You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete the .git directory in your local, cloned version of the repository so that you can begin with your own repository.
28
28
29
-
.. code-block:: sh
30
-
29
+
.. code-block:: sh
30
+
31
31
rm -rf .git
32
32
33
33
Check to make sure you have deleted the .git file:
34
34
35
35
.. code-block:: sh
36
36
37
37
git branch
38
-
38
+
39
39
You should see the following error:
40
40
41
41
.. code-block:: sh
42
42
:copyable: false
43
43
44
44
fatal: Not a git repository (or any of the parent directories): .git
45
45
46
-
46
+
47
47
---
48
48
title: Check to make sure you have removed the .git directory
49
49
ref: check-rm
@@ -62,25 +62,25 @@ content: |
62
62
total 32
63
63
drwxr-xr-x 7 you staff 238 Mar 11 05:05 .
64
64
drwxr-xr-x 85 you staff 2890 Mar 11 05:02 ..
65
-
-rw-r--r-- 1 you staff 2424 Mar 11 05:02 .gitignore
65
+
-rw-r--r-- 1 you staff 2424 Mar 11 05:02 .gitignore
66
66
-rw-r--r-- 1 you staff 2243 Mar 11 05:02 Makefile
67
67
-rw-r--r-- 1 you staff 7087 Mar 11 05:02 conf.py
68
68
drwxr-xr-x 8 you staff 272 Mar 11 05:02 config
69
69
drwxr-xr-x 17 you staff 578 Mar 11 05:02 source
70
-
70
+
71
71
---
72
72
title: Reinitialize the repo
73
73
ref: git-reinit
74
74
content: |
75
75
Run git init to reinitialize the repo:
76
76
77
77
.. code-block:: sh
78
-
78
+
79
79
git init
80
80
81
81
You will see the following output:
82
82
83
-
.. code-block:: sh
83
+
.. code-block:: sh
84
84
:copyable: false
85
85
86
86
Initialized empty Git repository in <yourdirectorystructure>/docs-yourrepo/.git/
@@ -115,7 +115,7 @@ content: |
115
115
---
116
116
117
117
title: Fork the repo
118
-
ref: fork-repo
118
+
ref: fork-repo
119
119
content: |
120
120
121
121
Go ahead and fork the repo on github if you wish to follow the docs model of github usage. `Fork a repo <https://help.github.com/en/articles/fork-a-repo>`_.
0 commit comments