-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathgit.help
45 lines (30 loc) · 898 Bytes
/
git.help
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
Step 1:
- Create a repo at https://github.com/sploitfun/ with name 'lsploits'
Step 2:
- Directory name should match with git repository name.
$mkdir lsploits
$ cd lsploits/
Step 3:
- Init git repository
~/lsploits$ git init
Initialized empty Git repository in /home/sploitfun/lsploits/.git/
Step 4:
- Link this local git repo with github repo.
~/lsploits$ git remote add origin https://github.com/sploitfun/lsploits.git
Step 5:
- Add username and email address.
~/lsploits$ git config --global user.name "sploitfun"
~/lsploits$ git config --global user.email [email protected]
Step 6:
- Add your files
~/lsploits$ touch git.help
Step 7:
- Add local changes
~/lsploits$ git add .
where '.' - Adds all the local changes.
Step 8:
- Commit the changes
~/lsploits$ git commit -m 'First Commit'
Step 9:
- Send the changes to github repo
~/lsploits$ git push origin master