-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub.txt
42 lines (15 loc) · 1.02 KB
/
github.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
------How to use GitHUb-----
==============================
$ git init => Initializing the git repository
$ git config --global user.name 'vgunaseelan' => Username
$ git config --global user.email 'vgunaseelan97@gmail.com' => Email
git add . => adds all the file (also use: git add index.html, git add *.html )
$ git status => returns the recent actions
$ git rm --cached ajaxfile.txt => removes the file 'ajaxfile.txt'
$ git status => returns the recent actions
$ git add ajaxfile.txt => adding ajaxfile.txt to the folder
$ git commit -m 'updated' => commits all the changes made
-- Open Github.com and create a repository. After done, you will see a couple of commands. Just use the last two commands (copy and paste it in the cmd terminal)--
$ git remote add origin https://github.com/VGunaseelan/demo.git => First commands generated
--At this stage, you will get a popup to enter your github credentials-
$ git push -u origin master => -Second commands generated