-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitCrashCourse.txt
More file actions
63 lines (46 loc) · 1.11 KB
/
Copy pathgitCrashCourse.txt
File metadata and controls
63 lines (46 loc) · 1.11 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
-> git config --global user.name "Kevin McIntosh"
Explanation
---
config Anything related to the current repository
--global Do this to everything
user.name Go to the user name key
"Kevin McIntosh" Modify the key with this user name
-> git clone <url>
Explination
---
Create a local copy of a remote repository
(In terms of proj2, cs411: git@github.com:aweeks/cs411-w)
-> git add <file>
Explination
---
Add a new file or directory
Ex: git add ./
Don't need to readd if you have already modified it
-> git commit -m "<message>"
Explination
---
Commit to your local drive
Does not commit to the server
-> git push
Explination
---
Push revisions to the remote server
Won't work if there are conflicts
-> git pull
Explination
---
Get most recent revisions from the server
-> git fetch && get rebase remotes/origin/master
Explination
---
Use when there is a conflict.
999/1000 (so saith alex) it works
Follow by calling "git push"
-> git fetch
Explinations
---
Get remote revisions and don not apply
-> git log
Explanation
---
View the commit log.