-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathPraveen-notes2.txt
50 lines (34 loc) · 1.07 KB
/
Praveen-notes2.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
mkdir [directory-name]
make new folder with name [directory-name]
ls
displays a list of files and folders in the current folder
cd [directory-name]
go into [directory-name]
touch [file.extension]
creates a new file with name [file.extension]
cat [filename]
displays the contents of the file
pwd []
print working directory, displays the current working directory
Ctrl+L clears the entire page in Git
git add
moves from working directory(cardboard box IN RED, diff btwn staging area) to staging area(wooden box IN GREEN, diff btwn repository) -- start tracking a file
git commit
moves from staging area to repository(metal box) -- commits -m ("MESSAGE") changes to the repository
To quit vim :q!
git init
initialize a new git repository
git status
tell us the status of the working directoryx
git log
shows us all the commits we have made
git diff
shows us the difference in staging area and directory
===== Git Summary
======================
Commit:
<explain>
Basic git workflow:
1. Change
2. Stage (Add)
3. Finalize (Commit)