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
Copy file name to clipboardExpand all lines: README.md
+18-16
Original file line number
Diff line number
Diff line change
@@ -11,33 +11,35 @@ Running this script rewrites history for all repository collaborators. After com
11
11
1.[Download the script](https://github.com/adamdehaven/change-git-author) from GitHub and save it to an easily-accessible directory on your computer.
12
12
2. Change the permissions of the script file to allow it to execute:
13
13
14
-
```sh
15
-
chmod +x /path/to/changeauthor.sh
16
-
```
14
+
```sh
15
+
chmod +x /path/to/changeauthor.sh
16
+
```
17
17
18
18
3. Navigate into the repository with the incorrect commit history
19
19
20
-
```sh
21
-
cd path/to/repo
22
-
```
20
+
``` sh
21
+
cd path/to/repo
22
+
```
23
23
24
-
Alternatively, you can run from anywhere by passing the `--git-dir` and `--work-tree` flags.
24
+
Alternatively, you can run from anywhere by passing the `--git-dir` and `--work-tree` flags.
25
25
26
26
4. Run the script (with or without flags)
27
27
28
-
```sh
29
-
./changeauthor.sh [OPTIONS]...
30
-
```
28
+
``` sh
29
+
./changeauthor.sh [OPTIONS]...
30
+
```
31
31
32
-
If you did not change the permissions to allow execution, you can also call the script with either of the following:
32
+
If you did not change the permissions to allow execution, you can also call the script with either of the following:
33
33
34
-
```sh
35
-
bash ./changeauthor.sh [OPTIONS]...
34
+
``` sh
35
+
bash ./changeauthor.sh [OPTIONS]...
36
36
37
-
sh ./changeauthor.sh [OPTIONS]...
38
-
```
37
+
sh ./changeauthor.sh [OPTIONS]...
38
+
```
39
+
40
+
If you run the script with no [option flags](#options), you will be prompted for the needed values via interactive prompts. The script will then proceed to update your local repository and push the changes to the specified remote.
39
41
40
-
If you run the script with no [option flags](#options), you will be prompted for the needed values via interactive prompts. The script will then proceed to update your local repository and push the changes to the specified remote.
42
+
----
41
43
42
44
If you would like to suppress the git-filter-branch warning, simply add the following line the `~/.bashrc` file on your computer:
0 commit comments