-
Notifications
You must be signed in to change notification settings - Fork 20
/
smalladdpush
71 lines (49 loc) · 2.16 KB
/
smalladdpush
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
## Steps to push to Git
++++++++++++++++++++++++++++++++++++++++++++++++++
Step0: create a file: class1_data_science_tool_box/summrylog
(for example)
++++++++++++++++++++++++++++++++++++++++++++++++++
Step1 : Check the Git Status ( use it most frequently)
Sudhirs-MacBook-Pro:jh sudhirwadhwa$ pwd
/Users/sudhirwadhwa/datatrack/jh
++++++++++++++++++++++++++++++++++++++++++++++++++
Sudhirs-MacBook-Pro:jh sudhirwadhwa$ git status
++++++++++++++++++++++++++++++++++++++++++++++++++
On branch master
Your branch is up-to-date with 'jh/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
class1_data_science_tool_box/summrylog
nothing added to commit but untracked files present (use "git add" to track)
Step2 : add file to staging area
++++++++++++++++++++++++++++++++++++++++++++++++++
Sudhirs-MacBook-Pro:jh sudhirwadhwa$ git add class1_data_science_tool_box/summrylog
++++++++++++++++++++++++++++++++++++++++++++++++++
new file: class1_data_science_tool_box/summrylog
Step3: Commit to your work
++++++++++++++++++++++++++++++++++++++++++++++++++
Sudhirs-MacBook-Pro:jh sudhirwadhwa$ git commit -m "adding summary log"
++++++++++++++++++++++++++++++++++++++++++++++++++
[master 6bab30b] adding summary log
1 file changed, 66 insertions(+)
create mode 100644 class1_data_science_tool_box/summrylog
++++++++++++++++++++++++++++++++++++++++++++++++++
Step4: Check the Status ( optional step)
++++++++++++++++++++++++++++++++++++++++++++++++++
Sudhirs-MacBook-Pro:jh sudhirwadhwa$ git status
On branch master
Your branch is ahead of 'jh/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
++++++++++++++++++++++++++++++++++++++++++++++++++
Step5: Push it to Github
++++++++++++++++++++++++++++++++++++++++++++++++++
Sudhirs-MacBook-Pro:jh sudhirwadhwa$ git push
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 940 bytes | 0 bytes/s, done.
Total 4 (delta 2), reused 0 (delta 0)
To https://github.com/sudhirwadhwa/jh.git
f64386a..6bab30b master -> master
Sudhirs-MacBook-Pro:jh sudhirwadhwa$