-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGitStatus.txt
42 lines (23 loc) · 922 Bytes
/
GitStatus.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
IMP GIT COMMANDS
-----------------------FIRST ROUND----------------------
Commands:
{FIRST TIME ONLY}
git init --> for create an empty git repo(local)
git remote add origin "REMOTE URL"
git status
git add -A
--> this command will send all the files to the staging area (check with 'git status' command that everyhting is in green or not)
{Before doing commit first time we need to execure this 2 commands}
git config --global user.name "YOUR NAME"
git config --gloabal user.email "YOUR EMAIL"
git commit -m "YOUR COMMIT MESSAGE/COMMENT"
git push -u origin master --> this will send all the files from git(local) to github(remote)
-->then it will ask you the remote user and password
-->after editing some code on remote url you have sync with the local repo as well for that the command is
git pull origin master
------------------SECOND ROUND-------------------
status
add
commit
push
pull