-
Notifications
You must be signed in to change notification settings - Fork 6
/
GitHub Commands
46 lines (32 loc) · 1.86 KB
/
GitHub Commands
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
####################################################################################################################################
<Go to your Local folder where you want to clone our ML Guthub repository>
git clone https://github.com/Raj1036/ML_Distracted_Driver_Detection.git
**********Always "git pull" the repository before uploading any folders/files to repository***************
<Downloads ML_Distracted_Driver_Detection folder into your local desktop>
####################################################################################################################################
<To upload local repository from your desktop to github>
<Copy/move your desired folder into your local "ML_Distracted_Driver_Detection" folder>
<run below commands each at a time>
git config --global user.name "<Your github Username>" && git config --global user.email "YourEmailID"
git init
git add "<Name of your local folder/files to upload>"
git commit -m "<Your upload Comments>"
git remote add origin https://github.com/Raj1036/ML_Distracted_Driver_Detection.git
git remote -v
git push -u origin master
<Give your Github username and password>
####################################################################################################################################
<To upload new/modified files into existing folders in Github repos>
<Go to the folder where files are available>
git status
<Rub below command with each file name>
git add <EachFileName>
git commit -m "<Your upload Comments>"
<Now go to the base repository you cloned from github>
cd ..
git push origin master
<Give your Github username and password>
####################################################################################################################################
<To refresh code from Github before making any changes>
<<Go to the base repository you cloned earlier from github>>
git pull