-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsimple-git
More file actions
44 lines (27 loc) · 882 Bytes
/
simple-git
File metadata and controls
44 lines (27 loc) · 882 Bytes
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
git add .
files will be added to staging area
git commit -m "COMMIT msg"
files will be added to local repository
git push
files will be moved to remote repository
To create a branch
git branch branchname
to checkout the code to the branch
#
git checkout branch_name
--------------------------
git checkout -b branchname
---------------------------
mkdir azure
cd azure
-------------------------
to initialize git repository from local
git init
touch file2 fil3
git add .
git commit -m "SOME message"
git remote add origin https://github.com/BecomeDevops/azure.git
git push
-------------------------------------------------------------------------------------------------------------------
This course is created as part of @BecomeDevops course
------------------------------------------------------------------------------------------------------------------------