-
Notifications
You must be signed in to change notification settings - Fork 3
/
gihubinfo.txt
47 lines (26 loc) · 1.03 KB
/
gihubinfo.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
----------------------------------------------------
basic git commands
----------------------------------------------------
to clone directory
git clone https://github.com/<Your_Username_Here>/SECON-2016.git
this will create a local directory under the github folder, default location is Documents\Github
----------------------------------------------------
commiting changes
cd .\SECON-2016
changes directory to push local changes to github
git status
git add *
add all local changes (ready for commit)
git commit -m "message"
commits local changes and adds change messages
git push
pushes local changes to remote repository
----------------------------------------------------
before starting work make sure to pull and sync the remote repository to your local
cd .\SECON-2016
git status
git pull htttps://github.com/WillGrayMSU/SECON-2016.git master
git pull
-----------------------------------------------------
creating branch
git checkout -b origin/<Branch Name>