-
Notifications
You must be signed in to change notification settings - Fork 2
/
log.txt
48 lines (34 loc) · 1.52 KB
/
log.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
Mayank:
1]git config --global user.name �[firstname lastname]�
--set a name that is identi?able for credit when review version history
2]git config --global user.email �[valid-email]�
--set an email address that will be associated with each history marker
3]git init
--initialize an existing directory as a Git repository
4]git clone [url]
--retrieve an entire repository from a hosted location via URL
5]git status
--show modi?ed ?les in working directory, staged for your next commit
6]git add [file]
--add a ?le as it looks now to your next commit (stage)
7]git commit -m �[descriptive message]�
--commit your staged content as a new commit snapshot
8]git branch
--list your branches. a * will appear next to the currently active branch
9]git branch [branch-name]
--create a new branch at the current commit
10]git checkout
--switch to another branch and check it out into your working directory
11]git merge [branch]
--merge the speci?ed branch�s history into the current one
12]git log
--show all commits in the current branch�s history
Ashwath:
cd <folder location> - to navigate to respective folder
git clone <url> - to clone remote repo to local repo
git branch <branchname> - to create new branch with specified branch name
git checkout <branchname> - to switch to respective branch
git merge <branchname> - to merge branch with another branch
git add <filename> - to stage changes in file to local repo
git commit -m "comment"- to commit changes that was staged to local repo
git push - to sync changes to remote repo