-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloning_modifying_public_repos.txt
32 lines (26 loc) · 1.09 KB
/
cloning_modifying_public_repos.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$ git diff
diff --git a/update_list.py b/update_list.py
index 996e87c..b7ce67a 100755
--- a/update_list.py
+++ b/update_list.py
@@ -6,6 +6,8 @@ from urllib.parse import quote
import re
+
+
def regexReplace(string, search, replacement):
return re.compile(search).sub(replacement, string)
@@ -32,3 +34,5 @@ readmeContents = open('README.md', 'r', encoding="utf-8").read()
open('README.md', 'w', encoding="utf-8").write(regexReplace(
readmeContents, r"<!--Languages start-->(.|\n)*<!--Languages end-->", result))
+
+#End of the file
\ No newline at end of file
In line 6,
In -6,6 =>
-6 means => 1st file, 6 refers to the start section in 1st file where there are changes
6 means => number of lines of a section
In +6,8 =>
+6 means => 2nd file, 6 refers to the start section in 2nd file where there are changes
8 means => number of lines of a section
----------------------------------------------------------------------------------------------
git commit -m "<Commit message" -a => Used to add files to staging area and also commit