forked from jlord/git-it
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.txt
88 lines (47 loc) · 1.62 KB
/
help.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{cyan}{bold}
HANDY GIT AND BASH COMMANDS{/bold}{/cyan}
{cyan}
GIT COMMANDS{/cyan}
------------
{bold}Configure your username{/bold}
$ git config --global user.name "YourGitHubUserName"
{bold}Configure your email{/bold}
$ git config --global user.email [email protected]
{bold}Check status of changes to a repository{/bold}
$ git status
{bold}Add a file's changes to be commited{/bold}
$ git add <FILENAME>
{\e}To add all files' changes{/\e}
$ git add .
{bold}To commit (aka save) the changes you've added with a short
message describing the changes{/bold}
$ git commit -m "your message"
{bold}To push your changes to a remote{/bold}
$ git push <REMOTENAME> <BRANCHNAME>
{bold}To pull in changes from remote{/bold}
$ git pull <REMOTENAME> <REMOTENAME>
{bold}Merge a branch into current branch{/bold}
$ git merge <BRANCHNAME>
{bold}Change the branch you're working on{/bold}
$ git checkout <BRANCHNAME>{/yellow}
{bold}Delete a local branch{/bold}
$ git branch -D <BRANCHNAME>
{bold}Delete a remote branch{/bold}
$ git push -D <BRANCHNAME>
{cyan}
BASH COMMANDS{/cyan}
-------------
{bold}Make a new folder (aka directory){/bold}
$ mkdir <FOLDERNAME>
{bold}Navigate into an existing folder (aka change directory){/bold}
$ cd <FOLDERNAME>
{bold}List the items in a folder{/bold}
$ ls
{bold}Navigate out of current folder (directory){/bold}
$ cd ..
{bold}Navigate your computer's root directory{/bold}
$ cd
{bold}Remove (delete) a file{/bold}
$ rm <FILENAME>
{bold}Remove (delete) a folder{/bold}
$ rm -rf <FOLDERNAME>